mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-10-03 18:06:32 +08:00
Rename to .amf from .xml
This commit is contained in:
parent
1f2d3d11b9
commit
18ddd3a36d
@ -10,7 +10,7 @@ SCENARIO("Reading AMF file") {
|
|||||||
GIVEN("badly formed AMF file (missing vertices)") {
|
GIVEN("badly formed AMF file (missing vertices)") {
|
||||||
auto model {new Slic3r::Model()};
|
auto model {new Slic3r::Model()};
|
||||||
WHEN("AMF model is read") {
|
WHEN("AMF model is read") {
|
||||||
auto ret = Slic3r::IO::AMF::read(testfile("test_amf/5061-malicious.xml"),model);
|
auto ret = Slic3r::IO::AMF::read(testfile("test_amf/5061-malicious.amf"),model);
|
||||||
THEN("read should return True") {
|
THEN("read should return True") {
|
||||||
REQUIRE(ret);
|
REQUIRE(ret);
|
||||||
}
|
}
|
||||||
@ -19,7 +19,7 @@ SCENARIO("Reading AMF file") {
|
|||||||
GIVEN("Ok formed AMF file") {
|
GIVEN("Ok formed AMF file") {
|
||||||
auto model {new Slic3r::Model()};
|
auto model {new Slic3r::Model()};
|
||||||
WHEN("AMF model is read") {
|
WHEN("AMF model is read") {
|
||||||
auto ret = Slic3r::IO::AMF::read(testfile("test_amf/read-amf.xml"),model);
|
auto ret = Slic3r::IO::AMF::read(testfile("test_amf/read-amf.amf"),model);
|
||||||
THEN("read should return True") {
|
THEN("read should return True") {
|
||||||
REQUIRE(ret);
|
REQUIRE(ret);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user