Skip to content

Commit

Permalink
clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-duncan committed Sep 24, 2024
1 parent d0ac70a commit 9609916
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/test_all.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable no-unused-vars */
import * as test from "./test.js";

//import * as scanner from "./tests/test_scanner.js";
import * as scanner from "./tests/test_scanner.js";
import * as parser from "./tests/test_parser.js";
import * as struct from "./tests/struct.js";
import * as reflect from "./tests/test_reflect.js";
Expand Down
5 changes: 3 additions & 2 deletions test/tests/test_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ group("Parser", function () {

test("override", function (test) {
const parser = new WgslParser();
const t = parser.parse("override AP_INV_DISTANCE_PER_SLICE = 1.0 + AP_DISTANCE_PER_SLICE;");
test.equals(t.length, 1);
const t = parser.parse("const AP_DISTANCE_PER_SLICE = 4.0; override AP_INV_DISTANCE_PER_SLICE = 1.0 / AP_DISTANCE_PER_SLICE;");
test.equals(t.length, 2);
//const v = t[1].evaluate(parser._context);
});

test("bar--;", function (test) {
Expand Down

0 comments on commit 9609916

Please sign in to comment.