(t *testing.T)
| 174 | } |
| 175 | |
| 176 | func TestString_Getters(t *testing.T) { |
| 177 | t.Run("length", func(t *testing.T) { |
| 178 | reporter := newMockReporter(t) |
| 179 | |
| 180 | value := NewString(reporter, "foo") |
| 181 | |
| 182 | innerValue := value.Length() |
| 183 | assert.Equal(t, 3.0, innerValue.Raw()) |
| 184 | |
| 185 | value.chain.assert(t, success) |
| 186 | innerValue.chain.assert(t, success) |
| 187 | }) |
| 188 | } |
| 189 | |
| 190 | func TestString_IsEmpty(t *testing.T) { |
| 191 | cases := []struct { |