1
0
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:
dudaodong
2022-08-27 19:19:34 +08:00
parent 72e1d92fa1
commit 04058dd7da
3 changed files with 17 additions and 12 deletions

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))
}