Skip to content

v0.2.49..v0.2.50 changeset StatCmdTest.sh

Garret Voltz edited this page Nov 6, 2019 · 1 revision
diff --git a/test-files/cmd/slow/StatCmdTest.sh b/test-files/cmd/slow/StatCmdTest.sh
index 874d0b2..5920f4c 100755
--- a/test-files/cmd/slow/StatCmdTest.sh
+++ b/test-files/cmd/slow/StatCmdTest.sh
@@ -5,6 +5,13 @@ OUTPUT_DIR=test-output/cmd/slow/StatCmdTest
 rm -rf $OUTPUT_DIR
 mkdir -p $OUTPUT_DIR
 INPUT_FILE_1=test-files/visitors/SumNumericTagsVisitorTest.osm
+INPUT_FILE_2=test-files/ToyBuildingsTestA.osm
 
 # calculate the numerical average of all values for a custom tag
 hoot stat -D tags.visitor.keys="test1" $INPUT_FILE_1 hoot::AverageNumericTagsVisitor
+
+# calculate the averge number of nodes per way
+hoot stat $INPUT_FILE_2 hoot::NodesPerWayVisitor average
+
+# This results in an error since AddressCountVisitor doesn't support NumericStatistic.
+hoot stat $INPUT_FILE_2 hoot::AddressCountVisitor average
Clone this wiki locally