-
Notifications
You must be signed in to change notification settings - Fork 680
Assert
agershun edited this page Nov 23, 2014
·
6 revisions
Now you can use Alasql ASSERT operator to test results of previous operation:
ASSERT string | number | boolean | array | object
For example:
CREATE TABLE one (a INT);
ASSERT 1;
INSERT INTO one VALUES (1),(2),(3);
ASSERT 3;
SELECT * FROM one ORDER BY a DESC;
ASSERT [{a:3},{a:2},{a:1}];
© 2014-2024, Andrey Gershun & Mathias Rangel Wulff
Please help improve the documentation by opening a PR on the wiki repo