Expose internal RawBool type
This commit is contained in:
parent
a428981a2d
commit
0a7e0b5392
7 changed files with 17 additions and 0 deletions
|
|
@ -57,6 +57,9 @@ func TestRawInvalidArguments(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestRawHelperMethods(t *testing.T) {
|
||||
assertSerialize(t, RawBool("table.colInt < :float", RawArgs{":float": 11.22}).IS_FALSE(),
|
||||
"(table.colInt < $1) IS FALSE", 11.22)
|
||||
|
||||
assertSerialize(t, RawFloat("table.colInt + :float", RawArgs{":float": 11.22}).EQ(Float(3.14)),
|
||||
"((table.colInt + $1) = $2)", 11.22, 3.14)
|
||||
assertSerialize(t, RawString("table.colStr || str", RawArgs{"str": "doe"}).EQ(String("john doe")),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue