refactor: change common package to condition package

This commit is contained in:
dudaodong committed 2022-08-27 19:19:34 +08:00
1 parent 72e1d92fa1
commit 04058dd7da
3 files changed
+17 -12

No files matched your search

+15
View 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))
}