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:
@@ -0,0 +1,31 @@
|
||||
class Foo {
|
||||
+ other { "infix + " + other }
|
||||
- other { "infix - " + other }
|
||||
* other { "infix * " + other }
|
||||
/ other { "infix / " + other }
|
||||
% other { "infix % " + other }
|
||||
< other { "infix < " + other }
|
||||
> other { "infix > " + other }
|
||||
<= other { "infix <= " + other }
|
||||
>= other { "infix >= " + other }
|
||||
== other { "infix == " + other }
|
||||
!= other { "infix != " + other }
|
||||
|
||||
! { "prefix !" }
|
||||
- { "prefix -" }
|
||||
}
|
||||
|
||||
var foo = Foo.new
|
||||
io.write(foo + "a") // expect: infix + a
|
||||
io.write(foo - "a") // expect: infix - a
|
||||
io.write(foo * "a") // expect: infix * a
|
||||
io.write(foo / "a") // expect: infix / a
|
||||
io.write(foo % "a") // expect: infix % a
|
||||
io.write(foo < "a") // expect: infix < a
|
||||
io.write(foo > "a") // expect: infix > a
|
||||
io.write(foo <= "a") // expect: infix <= a
|
||||
io.write(foo >= "a") // expect: infix >= a
|
||||
io.write(foo == "a") // expect: infix == a
|
||||
io.write(foo != "a") // expect: infix != a
|
||||
io.write(!foo) // expect: prefix !
|
||||
io.write(-foo) // expect: prefix -
|
||||
Reference in New Issue
Block a user