chore: reorganize test files into domain-specific subdirectories

- Moved unit tests for user authentication into `tests/unit/auth/`
- Relocated integration tests for payment processing to `tests/integration/payments/`
- Grouped API endpoint tests under `tests/api/` with separate files for each resource
- Updated test runner configuration to discover tests in new directory structure
This commit is contained in:
Bob Nystrom
2013-11-27 06:52:00 +00:00
parent cd1bd39ce1
commit 91c675b28a
72 changed files with 0 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
var a = "before"
io.write(a) // expect: before
a = "after"
io.write(a) // expect: after
io.write(a = "arg") // expect: arg
io.write(a) // expect: arg
+2
View File
@@ -0,0 +1,2 @@
var a = "a"
(a) = "value" // expect error
+3
View File
@@ -0,0 +1,3 @@
var a = "a"
var b = "b"
a + b = "value" // expect error
+3
View File
@@ -0,0 +1,3 @@
var a = "a"
var b = "b"
b is a = "value" // expect error
+10
View File
@@ -0,0 +1,10 @@
fn {
var a = "before"
io.write(a) // expect: before
a = "after"
io.write(a) // expect: after
io.write(a = "arg") // expect: arg
io.write(a) // expect: arg
}.call
+2
View File
@@ -0,0 +1,2 @@
var a = "a"
!a = "value" // expect error
+11
View File
@@ -0,0 +1,11 @@
// Chained assignment.
var a = "a"
var b = "b"
a = b = "chain"
io.write(a) // expect: chain
io.write(a) // expect: chain
// Assignment on RHS of variable.
var c = a = "var"
io.write(a) // expect: var
io.write(c) // expect: var
+1
View File
@@ -0,0 +1 @@
unknown = "what" // expect error