Skip to content

Commit

Permalink
Rename test -> sp
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanBrouwer committed Dec 1, 2023
1 parent c1b9bcf commit 00ee90d
Show file tree
Hide file tree
Showing 215 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ echo "fn main() { print(42); }" | cargo run && ./output
Run with specified input path, without specifying an output path:

```sh
cargo run -- example.jj && ./example
cargo run -- example.sp && ./example
```

Run with specified input path and specified output path:
Expand Down
2 changes: 1 addition & 1 deletion compiler/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ enum MainError {
#[derive(Parser, Debug)]
#[command(author, version, about, long_about = None)]
struct Args {
/// Specifies the path to an input .jj file. If None, it means stdin is used for input.
/// Specifies the path to an input .sp file. If None, it means stdin is used for input.
input: Option<String>,

/// Specifies the path to an output file. If None, it uses the input filename.
Expand Down
2 changes: 1 addition & 1 deletion compiler/src/passes/assign/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ fn assign([test]: [&str; 1]) {
assert_eq!(io.outputs(), &expected_output, "Incorrect program output.");
}

test_each_file! { for ["test"] in "./programs/good" as assign => assign }
test_each_file! { for ["sp"] in "./programs/good" as assign => assign }
2 changes: 1 addition & 1 deletion compiler/src/passes/conclude/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ fn conclude([test]: [&str; 1]) {
assert_eq!(io.outputs(), &expected_output, "Incorrect program output.");
}

test_each_file! { for ["test"] in "./programs/good" as conclude => conclude }
test_each_file! { for ["sp"] in "./programs/good" as conclude => conclude }
4 changes: 2 additions & 2 deletions compiler/src/passes/parse/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ fn parse([test]: [&str; 1]) {
}
}

test_each_file! { for ["test"] in "./programs/good" as parse_succeed => parse }
test_each_file! { for ["test"] in "./programs/fail/parse" as parse_fail => parse }
test_each_file! { for ["sp"] in "./programs/good" as parse_succeed => parse }
test_each_file! { for ["sp"] in "./programs/fail/parse" as parse_fail => parse }
2 changes: 1 addition & 1 deletion compiler/src/passes/patch/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ fn patch([test]: [&str; 1]) {
assert_eq!(io.outputs(), &expected_output, "Incorrect program output.");
}

test_each_file! { for ["test"] in "./programs/good" as patch => patch }
test_each_file! { for ["sp"] in "./programs/good" as patch => patch }
2 changes: 1 addition & 1 deletion compiler/src/passes/select/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ fn select([test]: [&str; 1]) {
assert_eq!(io.outputs(), &expected_output, "Incorrect program output.");
}

test_each_file! { for ["test"] in "./programs/good" as select => select }
test_each_file! { for ["sp"] in "./programs/good" as select => select }
4 changes: 2 additions & 2 deletions compiler/src/passes/validate/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ fn validate([test]: [&str; 1], good: bool) {
}
}

test_each_file! { for ["test"] in "./programs/good" as validate_succeed => |i| validate(i, true) }
test_each_file! { for ["test"] in "./programs/fail/validate" as validate_fail => |i| validate(i, false) }
test_each_file! { for ["sp"] in "./programs/good" as validate_succeed => |i| validate(i, true) }
test_each_file! { for ["sp"] in "./programs/fail/validate" as validate_fail => |i| validate(i, false) }
2 changes: 1 addition & 1 deletion compiler/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ fn integration([test]: [&str; 1]) {
}
}

test_each_file! { for ["test"] in "./programs/good" as integration => integration }
test_each_file! { for ["sp"] in "./programs/good" as integration => integration }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 00ee90d

Please sign in to comment.