(t *testing.T)
| 47 | } |
| 48 | |
| 49 | func TestIndexingIntNegative(t *testing.T) { |
| 50 | require.NoError(t, schema.ParseBytes([]byte("age:int @index(int) ."), 1)) |
| 51 | a, err := indexTokensForTest("age", "", types.Val{Tid: types.StringID, Value: []byte("-10")}) |
| 52 | require.NoError(t, err) |
| 53 | require.EqualValues(t, []byte{0x6, 0x0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf6}, |
| 54 | []byte(a[0])) |
| 55 | } |
| 56 | |
| 57 | func TestIndexingFloat(t *testing.T) { |
| 58 | require.NoError(t, schema.ParseBytes([]byte("age:float @index(float) ."), 1)) |
nothing calls this directly
no test coverage detected