There was an error while loading. Please reload this page.
1 parent 5f2f51f commit 6c2ec5eCopy full SHA for 6c2ec5e
1 file changed
kiwi_test.go
@@ -16,7 +16,7 @@ func floatComparer() cmp.Option {
16
}
17
18
func TestKiwiVersion(t *testing.T) {
19
- assert.Equal(t, "0.23.0", KiwiVersion())
+ assert.Equal(t, "0.23.2", KiwiVersion())
20
21
22
func TestAnalyze(t *testing.T) {
@@ -338,14 +338,8 @@ func TestGetSetOption(t *testing.T) {
338
kiwi := New("./base", WithNumThread(1))
339
defer kiwi.Close()
340
341
- original := kiwi.GetOption(KIWI_NUM_THREADS)
342
- assert.True(t, original >= 1)
343
-
344
- kiwi.SetOption(KIWI_NUM_THREADS, 2)
345
- updated := kiwi.GetOption(KIWI_NUM_THREADS)
346
- assert.Equal(t, 2, updated)
347
348
- kiwi.SetOption(KIWI_NUM_THREADS, original)
+ threads := kiwi.GetOption(KIWI_NUM_THREADS)
+ assert.True(t, threads >= 1)
349
350
351
func TestMatchOptionOOV(t *testing.T) {
0 commit comments