1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
use super::*;
#[test]
fn dont_run_duplicate_recipes() {
Test::new()
.justfile(
"
set dotenv-load # foo
bar:
",
)
.success();
}
#[test]
fn comment_after_unexport() {
Test::new()
.justfile(
"
unexport foo # bar
baz:
",
)
.success();
}
#[test]
fn attribute_without_item() {
Test::new()
.justfile(
"
[confirm]
",
)
.stderr(
"
error: expected '@', '[', comment, end of line, or identifier, but found end of file
——▶ justfile:1:11
│
1 │ [confirm]
│ ^
",
)
.failure();
}