[BREAKING] Feat: quotation is now using ()
This commit is contained in:
@@ -68,12 +68,12 @@ fn unexpected_semicolon_errors() {
|
||||
|
||||
#[test]
|
||||
fn apply_executes_quotation() {
|
||||
expect_int("5 { 2 * } apply", 10);
|
||||
expect_int("5 ( 2 * ) apply", 10);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn apply_with_stack_ops() {
|
||||
expect_int("3 4 { + } apply", 7);
|
||||
expect_int("3 4 ( + ) apply", 7);
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -88,12 +88,12 @@ fn apply_non_quotation_errors() {
|
||||
|
||||
#[test]
|
||||
fn apply_nested() {
|
||||
expect_int("2 { { 3 * } apply } apply", 6);
|
||||
expect_int("2 ( ( 3 * ) apply ) apply", 6);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn define_word_containing_quotation() {
|
||||
expect_int(": dbl { 2 * } apply ; 7 dbl", 14);
|
||||
expect_int(": dbl ( 2 * ) apply ; 7 dbl", 14);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user