Skip to content

Commit

Permalink
Add unit tests for array union and intersection
Browse files Browse the repository at this point in the history
- related to issue #183
  • Loading branch information
jlchmura committed Jan 21, 2025
1 parent b9115b4 commit e9c47dc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// "${workspaceRoot}/../StickLib",
// "${workspaceRoot}/../mg-mudlib",
// "${workspaceRoot}/../lima",
// "${workspaceRoot}/../lpc-test2",
"${workspaceRoot}/../lpc-test2",
// "${workspaceRoot}/../glpu-john",
"${workspaceRoot}/../nightmare-residuum",
// "${workspaceRoot}/../nightmare-residuum",
// "${workspaceRoot}/../infinity-lib",
// "${workspaceRoot}/../fluff-test",
//"${workspaceRoot}/efuns/ldmud",
Expand Down
8 changes: 8 additions & 0 deletions server/src/tests/cases/compiler/array3.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,12 @@ test() {
arr -= ({ 0 });
arr = arr - ({ 0 });
arr = arr - ({ o });
arr = arr | ({ o });
arr = arr & ({ o });
arr |= ({ o });
arr &= ({ o });
arr = arr | arr;
arr = arr & arr;
arr |= arr;
arr &= arr;
}

0 comments on commit e9c47dc

Please sign in to comment.