Skip to content

Commit

Permalink
solidify duplicate sort states in testo
Browse files Browse the repository at this point in the history
  • Loading branch information
robertl committed Jun 12, 2003
1 parent 404e24a commit b42c49c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions testo
Expand Up @@ -14,6 +14,13 @@ compare()
}
}

sort_and_compare()
{
sort $1 > $TMPDIR/s1
sort $2 > $TMPDIR/s2
compare $TMPDIR/s1 $TMPDIR/s2
}


# Geocaching .loc
rm -f ${TMPDIR}/gl.loc
Expand Down Expand Up @@ -227,7 +234,7 @@ rm -f ${TMPDIR}/filterdupe.csv1 ${TMPDIR}/filterdupe.csv2
${PNAME} -i geo -f geocaching.loc -o csv -F ${TMPDIR}/filterdupe.csv1
${PNAME} -i geo -f geocaching.loc -f geocaching.loc -x duplicate,shortname \
-o csv -F ${TMPDIR}/filterdupe.csv2
compare ${TMPDIR}/filterdupe.csv1 ${TMPDIR}/filterdupe.csv2
sort_and_compare ${TMPDIR}/filterdupe.csv1 ${TMPDIR}/filterdupe.csv2

#
# Position filter - Since very small distances are essentialy a duplicate
Expand All @@ -237,7 +244,7 @@ rm -f ${TMPDIR}/filterpos.csv1 ${TMPDIR}/filterpos.csv2
${PNAME} -i geo -f geocaching.loc -o csv -F ${TMPDIR}/filterpos.csv1
${PNAME} -i geo -f geocaching.loc -f geocaching.loc -x position,distance=5f \
-o csv -F ${TMPDIR}/filterpos.csv2
compare ${TMPDIR}/filterpos.csv1 ${TMPDIR}/filterpos.csv2
sort_and_compare ${TMPDIR}/filterpos.csv1 ${TMPDIR}/filterpos.csv2

#
# Radius filter
Expand Down

0 comments on commit b42c49c

Please sign in to comment.