-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compare: locate additional columns to the left of diff columns; add t…
…est (#146)
- Loading branch information
Showing
6 changed files
with
73 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -494,3 +494,9 @@ test-compare: test-%: ${BUILD_DIR}/bin/zsv_%${EXE} | |
|
||
@(${PREFIX} $< compare/t1.csv compare/t7.csv compare/t3.csv --print-key-colname -k c ${REDIRECT1} ${TMP_DIR}/[email protected] && \ | ||
${CMP} ${TMP_DIR}/[email protected] expected/[email protected] && ${TEST_PASS} || ${TEST_FAIL}) | ||
|
||
@(${PREFIX} $< compare/t1.csv compare/t7.csv compare/t3.csv --print-key-colname -k c ${REDIRECT1} ${TMP_DIR}/[email protected] && \ | ||
${CMP} ${TMP_DIR}/[email protected] expected/[email protected] && ${TEST_PASS} || ${TEST_FAIL}) | ||
|
||
@(${PREFIX} $< ../../data/compare/t1.csv ../../data/compare/t2.csv --add AccentCity --sort -k country -k city ${REDIRECT1} ${TMP_DIR}/[email protected] && \ | ||
${CMP} ${TMP_DIR}/[email protected] expected/[email protected] && ${TEST_PASS} || ${TEST_FAIL}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
country,city,AccentCity,Column,../../data/compare/t1.csv,../../data/compare/t2.csv | ||
cn,fulongling,Placken,<key>,Missing, | ||
de,placken,Placken,Longitude,8.433333,10.4 | ||
ie,burtown cross roads,Oggal,<key>,Missing, | ||
kr,chusamdong,Cvetovo,<key>,Missing, | ||
pl,ciesle male,Ciesle Male,AccentCity,Ciesle Male,Ciesle XXX | ||
ru,chishmabash,Chishmabash,<key>,,Missing | ||
tr,yenioe,Lituhi Mission,<key>,Missing, | ||
zr,kakova,Kakova,Region,9,XX |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Country,City,AccentCity,Region,Population,Latitude,Longitude | ||
de,placken,Placken,7,,52.15,8.433333 | ||
gb,duffryn,Duffryn,Z3,,51.4375,-3.304444 | ||
id,kemitang,Kemitang,7,,-7.544444,109.183333 | ||
ie,oggal,Oggal,2,,54.2597222,-7.9266667 | ||
mk,cvetovo,Cvetovo,92,,41.8580556,21.4097222 | ||
pl,ciesle male,Ciesle Male,86,,52.176861,17.649143 | ||
ru,chishmabash,Chishmabash,73,,55.4708,53.8996 | ||
tz,lituhi mission,Lituhi Mission,14,,-10.55,34.6 | ||
us,steep falls,Steep Falls,ME,,43.7938889,-70.6530556 | ||
za,hota,Hota,5,,-31.640685,27.681357 | ||
zr,kakova,Kakova,9,,0.7333333,29.0166667 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Region,Population,Latitude,Longitude,Country,City,AccentCity | ||
92,,41.8580556,21.4097222,mk,cvetovo,Cvetovo | ||
86,,52.176861,17.649143,pl,ciesle male,Ciesle XXX | ||
39,,41.677473,27.067859,tr,yenioe,Yenioe | ||
14,,-10.55,34.6,tz,lituhi mission,Lituhi Mission | ||
ME,,43.7938889,-70.6530556,us,steep falls,Steep Falls | ||
5,,-31.640685,27.681357,za,hota,Hota | ||
XX,,0.7333333,29.0166667,zr,kakova,Kakova | ||
3,,26.934908,115.628584,cn,fulongling,Fulongling | ||
7,,52.15,10.4,de,placken,Placken | ||
Z3,,51.4375,-3.304444,gb,duffryn,Duffryn | ||
7,,-7.544444,109.183333,id,kemitang,Kemitang | ||
12,,52.9911111,-6.8938889,ie,burtown cross roads,Burtown XXX | ||
2,,54.2597222,-7.9266667,ie,oggal,Oggal | ||
16,,34.788889,127.670833,kr,chusamdong,Chusamdong |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters