mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-04 12:52:28 +08:00
16 lines
289 B
Go
16 lines
289 B
Go
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))
|
|
}
|