|
1 | 1 | use macro_rules_attribute::apply; |
| 2 | +use stringleton::sym; |
2 | 3 | use tests::mock_io::*; |
3 | 4 | use werk_fs::Absolute; |
4 | 5 | use werk_runner::{Runner, TaskId, Value}; |
5 | | -use werk_util::{Annotated, Symbol}; |
| 6 | +use werk_util::Annotated; |
| 7 | + |
| 8 | +stringleton::enable!(tests); |
6 | 9 |
|
7 | 10 | #[test] |
8 | 11 | fn test_path_resolution() { |
@@ -44,41 +47,35 @@ let exists-not-explicit-workspace = "<exists-not:workspace>" |
44 | 47 | }; |
45 | 48 | let globals = &workspace.manifest.global_variables; |
46 | 49 | assert_eq!( |
47 | | - globals.get(&Symbol::new("exists-resolved")).unwrap().value, |
| 50 | + globals.get(&sym!("exists-resolved")).unwrap().value, |
48 | 51 | Value::from(foo_workspace.clone()) |
49 | 52 | ); |
50 | 53 | assert_eq!( |
51 | | - globals |
52 | | - .get(&Symbol::new("exists-explicit-out-dir")) |
53 | | - .unwrap() |
54 | | - .value, |
| 54 | + globals.get(&sym!("exists-explicit-out-dir")).unwrap().value, |
55 | 55 | Value::from(foo_output) |
56 | 56 | ); |
57 | 57 | assert_eq!( |
58 | 58 | globals |
59 | | - .get(&Symbol::new("exists-explicit-workspace")) |
| 59 | + .get(&sym!("exists-explicit-workspace")) |
60 | 60 | .unwrap() |
61 | 61 | .value, |
62 | 62 | Value::from(foo_workspace.clone()) |
63 | 63 | ); |
64 | 64 |
|
65 | 65 | assert_eq!( |
66 | | - globals |
67 | | - .get(&Symbol::new("exists-not-resolved")) |
68 | | - .unwrap() |
69 | | - .value, |
| 66 | + globals.get(&sym!("exists-not-resolved")).unwrap().value, |
70 | 67 | Value::from(bar_output.clone()) |
71 | 68 | ); |
72 | 69 | assert_eq!( |
73 | 70 | globals |
74 | | - .get(&Symbol::new("exists-not-explicit-out-dir")) |
| 71 | + .get(&sym!("exists-not-explicit-out-dir")) |
75 | 72 | .unwrap() |
76 | 73 | .value, |
77 | 74 | Value::from(bar_output.clone()) |
78 | 75 | ); |
79 | 76 | assert_eq!( |
80 | 77 | globals |
81 | | - .get(&Symbol::new("exists-not-explicit-workspace")) |
| 78 | + .get(&sym!("exists-not-explicit-workspace")) |
82 | 79 | .unwrap() |
83 | 80 | .value, |
84 | 81 | Value::from(bar_workspace) |
|
0 commit comments