mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-22 21:55:15 +00:00
Major Subsystem Rewrite (Reconciler Mk5) (#217)
This commit is contained in:
committed by
GitHub
parent
8e8291a0bd
commit
fea303ac8b
@@ -31,13 +31,25 @@ gen_build_tests! {
|
||||
json_model_legacy_name,
|
||||
module_in_folder,
|
||||
module_init,
|
||||
plain_gitkeep,
|
||||
rbxm_in_folder,
|
||||
rbxmx_in_folder,
|
||||
server_in_folder,
|
||||
server_init,
|
||||
txt,
|
||||
txt_in_folder,
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn build_plain_txt() {
|
||||
run_build_test("plain.txt");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn build_rbxmx_ref() {
|
||||
run_build_test("rbxmx_ref.rbxmx");
|
||||
}
|
||||
|
||||
fn run_build_test(test_name: &str) {
|
||||
let manifest_dir = Path::new(env!("CARGO_MANIFEST_DIR"));
|
||||
let build_test_path = manifest_dir.join("build-tests");
|
||||
|
||||
14
rojo-test/src/snapshots/build_test__plain.txt.snap
Normal file
14
rojo-test/src/snapshots/build_test__plain.txt.snap
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
created: "2019-08-09T00:17:42.253380600Z"
|
||||
creator: insta@0.10.0
|
||||
source: rojo-test/src/build_test.rs
|
||||
expression: contents
|
||||
---
|
||||
<roblox version="4">
|
||||
<Item class="StringValue" referent="0">
|
||||
<Properties>
|
||||
<string name="Name">plain</string>
|
||||
<string name="Value">This is a bare text file with no project.</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
</roblox>
|
||||
13
rojo-test/src/snapshots/build_test__plain_gitkeep.snap
Normal file
13
rojo-test/src/snapshots/build_test__plain_gitkeep.snap
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
created: "2019-08-09T00:17:42.175575800Z"
|
||||
creator: insta@0.10.0
|
||||
source: rojo-test/src/build_test.rs
|
||||
expression: contents
|
||||
---
|
||||
<roblox version="4">
|
||||
<Item class="Folder" referent="0">
|
||||
<Properties>
|
||||
<string name="Name">plain_gitkeep</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
</roblox>
|
||||
28
rojo-test/src/snapshots/build_test__rbxmx_ref.rbxmx.snap
Normal file
28
rojo-test/src/snapshots/build_test__rbxmx_ref.rbxmx.snap
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
created: "2019-08-10T07:57:42.835269100Z"
|
||||
creator: insta@0.10.0
|
||||
source: rojo-test/src/build_test.rs
|
||||
expression: contents
|
||||
---
|
||||
<roblox version="4">
|
||||
<Item class="Folder" referent="0">
|
||||
<Properties>
|
||||
<string name="Name">rbxmx_ref</string>
|
||||
<BinaryString name="Tags"><![CDATA[]]></BinaryString>
|
||||
</Properties>
|
||||
<Item class="StringValue" referent="1">
|
||||
<Properties>
|
||||
<string name="Name">Target</string>
|
||||
<BinaryString name="Tags"><![CDATA[]]></BinaryString>
|
||||
<string name="Value">Pointed to by ObjectValue</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="ObjectValue" referent="2">
|
||||
<Properties>
|
||||
<string name="Name">Pointer</string>
|
||||
<BinaryString name="Tags"><![CDATA[]]></BinaryString>
|
||||
<Ref name="Value">1</Ref>
|
||||
</Properties>
|
||||
</Item>
|
||||
</Item>
|
||||
</roblox>
|
||||
14
rojo-test/src/snapshots/build_test__txt.snap
Normal file
14
rojo-test/src/snapshots/build_test__txt.snap
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
created: "2019-08-09T00:22:01.983322Z"
|
||||
creator: insta@0.10.0
|
||||
source: rojo-test/src/build_test.rs
|
||||
expression: contents
|
||||
---
|
||||
<roblox version="4">
|
||||
<Item class="StringValue" referent="0">
|
||||
<Properties>
|
||||
<string name="Name">txt</string>
|
||||
<string name="Value">This is a txt file in a project.</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
</roblox>
|
||||
Reference in New Issue
Block a user