jointable -n vergleicht Schlüssel als Zahlen, Review Punkt 9 abgeschlossen

This commit is contained in:
wkh
2026-10-30 10:07:48 +01:00
parent 158ce5dee2
commit d6733e737e
5 changed files with 30 additions and 11 deletions
+10
View File
@@ -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