jointable -n vergleicht Schlüssel als Zahlen, Review Punkt 9 abgeschlossen
This commit is contained in:
@@ -961,3 +961,13 @@ class ExactnessTest < RdbCase
|
||||
assert_equal 'v500', data_obj.row_at(data_obj.rows.last.from).cells[1]
|
||||
end
|
||||
end
|
||||
|
||||
class JoinNumericTest < RdbCase
|
||||
def test_jointable_n_matches_keys_as_numbers
|
||||
write('j1', "K\tA\n-\t-\n01\tx\n 2\ty\n3\tz\n")
|
||||
write('j2', "K\tB\n-\t-\n1\tp\n2.0\tq\n")
|
||||
assert_empty data(rdb('jointable', 'j1', 'j2'))
|
||||
assert_equal [%w[01 x p], [' 2', 'y', 'q']], data(rdb('jointable', '-n', 'j1', 'j2'))
|
||||
assert_equal 3, data(rdb('jointable', '-n', '-a1', 'j1', 'j2')).size
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user