From 68cf8cd242a2849036fbc5dccdd2b14f02bd067e Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Wed, 10 May 2017 23:51:32 +0000 Subject: [PATCH] Do not depend on object literals for tests FossilOrigin-Name: 2105581c29e3e4c77be3a97cf53bef97ee84d3f314d705409faa949fab7e7118 --- tests/tests.m | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/tests.m b/tests/tests.m index d047c38..6bb4ccc 100644 --- a/tests/tests.m +++ b/tests/tests.m @@ -34,11 +34,15 @@ OF_APPLICATION_DELEGATE(Test) @")"]; [connection executeCommand: @"INSERT INTO test (id, name, content) " @"VALUES ($1, $2, $3)" - parameters: @1, @"foo", @"Hallo Welt!", nil]; + parameters: [OFNumber numberWithInt: 1], @"foo", + @"Hallo Welt!", nil]; [connection executeCommand: @"INSERT INTO test (id, content, success) " @"VALUES ($1, $2, $3)" - parameters: @2, @2, @YES, nil]; - [connection insertRow: @{ @"content": @"Hallo!", @"name": @"foo" } + 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"];