Skip to content

Commit bbc6d96

Browse files
author
New year
committed
crud: refactor optional types to use go-option
- Remove: OptUint, OptInt, OptFloat64, OptString, OptBool, OptTuple. - Remove: MakeOptUint, MakeOptInt, MakeOptFloat64, MakeOptString, MakeOptBool, MakeOptTuple. - Update: All option structs to use option.* types. - Add type Any from go-option. - Fix: Test type inconsistencies. Changed #492
1 parent 30c1959 commit bbc6d96

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

crud/compile_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
package crud
33

44
import (
5+
"log"
56
"testing"
67

78
"github.com/tarantool/go-option"
@@ -71,13 +72,19 @@ func TestSomeAny(t *testing.T) {
7172

7273
if tc.value == nil {
7374
if exists {
75+
log.Printf("1%v", val)
76+
log.Printf("1%v", exists)
7477
t.Errorf("Expected no value for nil input, but got %v", val)
7578
}
7679
} else {
7780
if !exists {
81+
log.Printf("2%v", val)
82+
log.Printf("2%v", exists)
7883
t.Errorf("Expected value for %v, but got none", tc.value)
7984
}
8085
if val != tc.expected {
86+
log.Printf("3%v", val)
87+
log.Printf("3%v", exists)
8188
t.Errorf("Expected %v, got %v", tc.expected, val)
8289
}
8390
}

0 commit comments

Comments
 (0)