mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-12 08:42:29 +08:00
refactor: change common package to condition package
This commit is contained in:
15
condition/condition_test.go
Normal file
15
condition/condition_test.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package condition
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/duke-git/lancet/v2/internal"
|
||||
)
|
||||
|
||||
func TestTernaryOperator(t *testing.T) {
|
||||
assert := internal.NewAssert(t, "TernaryOperator")
|
||||
trueValue := "1"
|
||||
falseValue := "0"
|
||||
|
||||
assert.Equal(trueValue, TernaryOperator(true, trueValue, falseValue))
|
||||
}
|
||||
Reference in New Issue
Block a user