From fa23822f686760b0352543592ebea2731a1b3ed4 Mon Sep 17 00:00:00 2001 From: rankgice <209192670@qq.com> Date: Mon, 30 Sep 2024 19:51:44 +0800 Subject: [PATCH] Added test file raw_test.go --- tests/raw_test.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/raw_test.go b/tests/raw_test.go index fa0dd090..f18a05c8 100644 --- a/tests/raw_test.go +++ b/tests/raw_test.go @@ -55,19 +55,19 @@ func TestRawSelect(t *testing.T) { }, { "raw_test4", - `select * from users where name like "@name" and age = 18`, + `select * from users where name like "raw3" and age = @age`, map[string]interface{}{ - "name": "raw1", + "age": 18, }, []User{ - users[3], + users[2], }, }, { "raw_test5", - `select * from users where name like "@name" and age = 18`, + `select * from users where name like "@name" and age = @age`, map[string]interface{}{ - "name": "@raw", + "age": 18, }, []User{ users[3], @@ -75,12 +75,12 @@ func TestRawSelect(t *testing.T) { }, { "raw_test6", - `select * from users where name like "@name" and age = 18`, + `select * from users where name like "@age" and age = @age`, map[string]interface{}{ - "name": "@age", + "age": 18, }, []User{ - users[3], + users[4], }, }, }