Skip to content

Commit d50b32c

Browse files
Round 20: Update browser-dist, add fract tests to oracle harness
Browser distribution: - Update coordinator.js and crsql-multitab.js with failover changes - Provider.js already up to date with OPFS persistence C oracle harness: - Add rs-fract.test.c (fract suite) - fract test fails because crsql_fract_as_ordered is a stub - All other suites pass (rowid, vtab, rows_impacted, crsql, sandbox) Test summary: 153/154 tests pass (99.4%) - 64 unit tests - 52 parity tests - 18 browser tests - 19/20 C oracle tests (fract_as_ordered stub causes 1 failure)
1 parent 10c595e commit d50b32c

File tree

4 files changed

+105
-25
lines changed

4 files changed

+105
-25
lines changed

zig/browser-dist/coordinator.js

Lines changed: 13 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

zig/browser-dist/crsql-multitab.js

Lines changed: 88 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

zig/harness/c-oracle/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ TEST_SRCS := \
3131
$(CORE_SRC)/changes-vtab.test.c \
3232
$(CORE_SRC)/rows-impacted.test.c \
3333
$(CORE_SRC)/crsqlite.test.c \
34-
$(CORE_SRC)/sandbox.test.c
34+
$(CORE_SRC)/sandbox.test.c \
35+
$(CORE_SRC)/rs-fract.test.c
3536

3637
HARNESS_SRC := harness.c
3738

zig/harness/c-oracle/harness.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ extern void crsqlChangesVtabTestSuite(void);
5252
extern void rowsImpactedTestSuite(void);
5353
extern void crsqlTestSuite(void);
5454
extern void crsqlSandboxSuite(void);
55+
extern void crsqlFractSuite(void);
5556

5657
#define SUITE(N) if (strcmp(suite, "all") == 0 || strcmp(suite, N) == 0)
5758

@@ -76,6 +77,7 @@ int main(int argc, char *argv[]) {
7677
SUITE("rows_impacted") rowsImpactedTestSuite();
7778
SUITE("crsql") crsqlTestSuite();
7879
SUITE("sandbox") crsqlSandboxSuite();
80+
SUITE("fract") crsqlFractSuite();
7981

8082
printf("\n=== Tests Complete ===\n");
8183
return 0;

0 commit comments

Comments
 (0)