Overview
Comment: | Do not depend on object literals for tests |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
2105581c29e3e4c77be3a97cf53bef97 |
User & Date: | js 2017-05-10 23:51:32 |
Context
2017-05-10
| ||
23:59 | Add a license check-in: 406d3f822e user: js tags: trunk | |
23:51 | Do not depend on object literals for tests check-in: 2105581c29 user: js tags: trunk | |
23:46 | Move private methods to separate headers check-in: 6307a38198 user: js tags: trunk | |
Changes
Changes to tests/tests.m.
︙ | ︙ | |||
30 31 32 33 34 35 36 | @" id integer," @" name varchar(255)," @" content text," @" success boolean" @")"]; [connection executeCommand: @"INSERT INTO test (id, name, content) " @"VALUES ($1, $2, $3)" | > | | > > | > | 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | @" id integer," @" name varchar(255)," @" content text," @" success boolean" @")"]; [connection executeCommand: @"INSERT INTO test (id, name, content) " @"VALUES ($1, $2, $3)" parameters: [OFNumber numberWithInt: 1], @"foo", @"Hallo Welt!", nil]; [connection executeCommand: @"INSERT INTO test (id, content, success) " @"VALUES ($1, $2, $3)" parameters: [OFNumber numberWithInt: 2], [OFNumber numberWithInt: 2], [OFNumber numberWithBool: true], nil]; [connection insertRow: [OFDictionary dictionaryWithKeysAndObjects: @"content", @"Hallo!", @"name", @"foo", nil] intoTable: @"test"]; result = [connection executeCommand: @"SELECT * FROM test"]; of_log(@"%@", result); of_log(@"JSON: %@", [result JSONRepresentation]); for (id row in result) |
︙ | ︙ |