Update tests

This commit is contained in:
Alex Beregszaszi 2020-07-03 15:51:32 +01:00
parent fc8947d3e8
commit 0bd6fb027b
13 changed files with 18 additions and 0 deletions

View File

@ -4,3 +4,9 @@
_...(a...)
}
// ----
// SyntaxError 3384: (6-27): "_..." is not a valid identifier (ends with a dot).
// SyntaxError 7771: (6-27): "_..." is not a valid identifier (contains consecutive dots).
// SyntaxError 3384: (20-23): "$.." is not a valid identifier (ends with a dot).
// SyntaxError 7771: (20-23): "$.." is not a valid identifier (contains consecutive dots).
// SyntaxError 3384: (36-40): "a..." is not a valid identifier (ends with a dot).
// SyntaxError 7771: (36-40): "a..." is not a valid identifier (contains consecutive dots).

View File

@ -2,3 +2,4 @@
function x..y() {}
}
// ----
// SyntaxError 7771: (6-24): "x..y" is not a valid identifier (contains consecutive dots).

View File

@ -2,3 +2,4 @@
function x(a..b) {}
}
// ----
// SyntaxError 7771: (17-21): "a..b" is not a valid identifier (contains consecutive dots).

View File

@ -2,3 +2,4 @@
function x() -> a..b {}
}
// ----
// SyntaxError 7771: (22-26): "a..b" is not a valid identifier (contains consecutive dots).

View File

@ -2,3 +2,4 @@
let a..b := 1
}
// ----
// SyntaxError 7771: (10-14): "a..b" is not a valid identifier (contains consecutive dots).

View File

@ -2,3 +2,4 @@
function x...y() {}
}
// ----
// SyntaxError 7771: (6-25): "x...y" is not a valid identifier (contains consecutive dots).

View File

@ -2,3 +2,4 @@
function x(a...b) {}
}
// ----
// SyntaxError 7771: (17-22): "a...b" is not a valid identifier (contains consecutive dots).

View File

@ -2,3 +2,4 @@
function x() -> a...b {}
}
// ----
// SyntaxError 7771: (22-27): "a...b" is not a valid identifier (contains consecutive dots).

View File

@ -2,3 +2,4 @@
let a...b := 1
}
// ----
// SyntaxError 7771: (10-15): "a...b" is not a valid identifier (contains consecutive dots).

View File

@ -2,3 +2,4 @@
function x.() {}
}
// ----
// SyntaxError 3384: (6-22): "x." is not a valid identifier (ends with a dot).

View File

@ -2,3 +2,4 @@
function x(a.) {}
}
// ----
// SyntaxError 3384: (17-19): "a." is not a valid identifier (ends with a dot).

View File

@ -2,3 +2,4 @@
function x() -> a. {}
}
// ----
// SyntaxError 3384: (22-24): "a." is not a valid identifier (ends with a dot).

View File

@ -2,3 +2,4 @@
let a. := 1
}
// ----
// SyntaxError 3384: (10-12): "a." is not a valid identifier (ends with a dot).