-
Notifications
You must be signed in to change notification settings - Fork 2
/
test.sh
executable file
·13 lines (8 loc) · 5.15 KB
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
set -e
python -m rect_pack.rect_pack 198 198 26 92 16 92 30 49 19 59 17 57 65 12 22 33 36 20 38 17 21 30 10 59 34 16 32 17 12 44 16 31 44 11 40 12 16 30 10 47 12 39 21 22 9 49 21 20 51 8 8 50 13 30 47 8 22 17 22 17 41 9 23 16 9 39 14 24 22 15 23 14 9 33 10 29 11 26 19 15 35 8 25 11 21 13 34 8 27 10 7 38 26 10 8 31 30 8 33 7 32 7 32 7 37 6 37 6 13 17 10 22 10 21 11 19 9 23 12 17 22 9 33 6 32 6 24 8 31 6 31 6 22 8 16 11 25 7 35 5 5 35 5 35 32 5 32 5 12 13 31 5 8 19 30 5 15 10 5 29 6 24 11 13 14 10 17 8 15 9 9 15 11 12 6 22 11 12 10 13 26 5 5 26 8 16 5 25 8 15 12 10 24 5 24 5 24 5 7 17 14 8 11 10 5 22 6 18 4 27 17 6 6 17 7 14 16 6 9 10 18 5 10 9 6 15 8 11 22 4 4 22 5 17 5 17 12 7 7 12 10 8 16 5 10 8 20 4 6 13 5 15 5 15 10 7 4 17 4 17 5 13 8 8 10 6 10 6 15 4 11 5 18 3 6 9 4 13 3 17 3 17 5 10 5 10 7 7 6 8 8 6 15 3 14 3 7 6 10 4 5 8 8 5 8 5 8 5 13 3 12 3 9 4 7 5 3 11 4 8 4 7 7 4 9 3 5 5 5 5 5 5 3 8 3 8 3 8 6 4 11 2 3 7 3 7 7 3 3 7 3 7 7 3 10 2 5 4 2 10 9 2 2 8 5 3 7 2 7 2 4 3 6 2 5 2 3 3 3 3 3 3 4 2 4 2 1 7 2 3 2 3 1 2 > testdata/actual0.nogit
diff testdata/expected0 testdata/actual0.nogit
# python -m rect_pack.rect_pack 140 120 21.14 29.21 15.76 30.84 11.88 39.35 8.72 47.91 8.36 47.91 43.18 9.05 17.03 22.64 17.03 18.34 7.59 38.31 41.07 6.80 9.03 26.98 13.91 15.85 8.79 23.79 18.81 10.98 18.66 10.62 4.53 40.98 8.47 20.93 3.71 43.76 10.38 15.20 10.20 15.20 20.58 6.59 2.74 47.91 4.06 27.45 10.45 10.23 11.12 9.52 2.16 47.91 15.10 6.80 11.06 7.62 8.62 9.35 6.48 12.36 0.98 81.11 2.49 30.84 2.27 33.50 10.56 7.04 10.45 6.74 5.94 11.09 2.60 24.47 43.18 1.44 5.89 10.44 7.75 7.62 1.42 39.18 6.37 8.01 10.92 4.55 4.06 11.90 1.18 39.35 3.93 11.09 1.77 23.79 4.79 8.44 8.76 4.58 21.14 1.63 9.46 3.30 54.24 0.57 2.39 12.36 2.62 10.98 1.65 17.01 10.45 2.48 22.78 1.11 16.27 1.53 15.81 1.56 1.20 19.69 7.59 3.06 1.65 13.82 4.15 5.29 43.18 0.48 1.92 10.62 16.85 1.21 6.52 2.85 3.09 5.92 2.25 8.01 8.87 2.03 8.87 1.99 1.59 10.98 29.92 0.58 1.57 10.98 1.45 11.72 0.47 35.85 0.54 31.12 1.51 10.98 0.46 35.85 9.40 1.73 4.01 3.99 16.27 0.98 1.20 13.23 4.65 3.30 1.46 10.44 8.87 1.69 3.23 4.58 16.27 0.90 4.78 2.97 3.04 4.58 0.75 18.61 3.00 4.55 8.70 1.56 22.09 0.61 22.84 0.59 1.77 7.62 2.27 5.85 0.89 14.92 19.63 0.67 0.71 18.61 2.41 5.33 21.50 0.59 10.93 1.15 1.42 8.73 9.23 1.34 2.41 5.11 1.11 10.98 5.29 2.29 5.51 2.19 0.36 33.61 0.35 33.61 0.56 20.93 6.52 1.73 4.01 2.81 5.51 2.04 21.55 0.52 7.10 1.56 5.05 2.19 4.48 2.43 3.65 2.97 3.65 2.97 0.53 20.38 4.15 2.58 4.39 2.43 4.15 2.56 16.27 0.65 17.51 0.60 21.55 0.49 8.82 1.19 16.85 0.60 0.71 14.30 1.83 5.51 8.21 1.23 22.82 0.44 3.39 2.97 11.18 0.89 8.06 1.23 8.16 1.21 8.82 1.10 18.78 0.51 10.22 0.94 2.27 4.15 11.18 0.84 7.77 1.21 7.59 1.24 3.71 2.51 8.87 1.04 7.63 1.21 1.87 4.89 3.02 2.97 20.04 0.44 3.71 2.39 2.08 4.22 16.27 0.54 5.30 1.63 5.89 1.46 2.91 2.94 12.33 0.69 0.57 14.92 5.30 1.60 5.05 1.67 2.60 3.24 0.98 8.44 1.97 4.15 0.53 15.47 12.17 0.67 16.27 0.50 2.60 3.13 7.59 1.07 12.33 0.66 4.92 1.63 15.59 0.51 13.53 0.58 4.92 1.60 0.66 11.86 16.27 0.48 3.09 2.52 1.14 6.80 1.20 6.43 6.34 1.21 0.95 8.01 0.95 8.01 5.22 1.46 1.12 6.80 8.87 0.85 10.22 0.73 11.06 0.67 12.07 0.61 1.07 6.80 1.17 6.20 1.05 6.80 5.95 1.15 0.54 12.64 5.87 1.15 1.17 5.66 0.58 11.09 0.79 8.01 2.14 2.94 10.79 0.58 10.18 0.61
python -m rect_pack.rect_pack 1982 1982 713 912 713 912 1013 473 1013 473 773 503 773 503 > testdata/actual1.nogit
diff testdata/expected1 testdata/actual1.nogit
echo "Test Pass"