gettc 1.7.5 → 1.7.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0a749b72f782e9dd4eb99402eef64b9f522dab5e
4
- data.tar.gz: bd0188164895468f19e6bac14a14ac166f5e8bac
3
+ metadata.gz: e01bbfadb3be038f55f3b5ca259e4cffa277dbfc
4
+ data.tar.gz: e947d46ef440c2d1618b9e34a7ec34a17878fe13
5
5
  SHA512:
6
- metadata.gz: 28c5e11d377ade6b796431b3fa8e0637a2c796aad1f3978dc08fca0487283e42dde54f1c1c9fd2f1c3cd4caa28e813819a46e13a741a564259c8e980efe68a2c
7
- data.tar.gz: 3dbbfd3dd916f2428a8a4222466af226fbf227f8170fc56967e1f5ebe44fd760afa63d754ee31e93262a5fdb0a00aee3b4b6f597574f55f91f07535fd91e6d02
6
+ metadata.gz: 570470898814fab6e7eba93b64108d0756b2cf396f19098aafd881da6e6c39b321be8585da6f62183fe1c37b6c7466053f7e732d2d3f1a8ef2c847dbacc2ee6e
7
+ data.tar.gz: 53f01753b2c6abfb8646a8c016943c58fb64e425316a25cc68f489b9f3f50df13a815c23c69fcf33cd8af5e42b68d0410a0c8a51ee4787ee7cdd57184830f23d
data/core/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Gettc
2
- VERSION = "1.7.5"
2
+ VERSION = "1.7.5.1"
3
3
  end
data/dist/config.yml CHANGED
@@ -1,3 +1,3 @@
1
1
  username: gettc
2
2
  password: algorithm
3
- version: 1.7.5
3
+ version: 1.7.5.1
@@ -13,7 +13,7 @@ command_exists () {
13
13
 
14
14
  timeit () {
15
15
  if command_exists /usr/bin/time ; then
16
- /usr/bin/time -o /dev/null echo "testing availability of the time command" &>/dev/null
16
+ /usr/bin/time -o /dev/null echo "Testing availability of the time command" &>/dev/null
17
17
  if [ $? -eq 0 ]; then
18
18
  /usr/bin/time -o $ostream "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"
19
19
  return
@@ -46,17 +46,17 @@ view_file () {
46
46
  }
47
47
 
48
48
  report_case () {
49
- write ' input: '
49
+ write ' Input: '
50
50
  view_file "$data_d/$test_case.in"
51
- write ' expected: '
51
+ write ' Expected: '
52
52
  view_file "$data_d/$test_case.out"
53
- write ' received: '
53
+ write ' Received: '
54
54
  view_file "$output_d/$test_case.out"
55
55
  }
56
56
 
57
57
  init () {
58
- export time="time: %es - memory: %mk"
59
- export timeformat=%3lr
58
+ export TIME="Time: %es - Memory: %MK"
59
+ export TIMEFORMAT=%3lR
60
60
 
61
61
  if [ ! -d "$output_d" ]; then
62
62
  mkdir "$output_d"
@@ -94,34 +94,34 @@ main () {
94
94
  test_case=`basename "$input"`
95
95
  test_case=${test_case%.in}
96
96
 
97
- write "check $test_case ... "
97
+ write "Check $test_case ... "
98
98
  timeit "$solver" "$data_d/$test_case.in" "$output_d/$test_case.out"
99
99
  "$checker" "$data_d/$test_case.out" "$output_d/$test_case.out" > $ostream
100
100
  retcode=$?
101
101
 
102
102
  if [ $retcode -eq 0 ]; then
103
- puts 'passed'
103
+ puts 'Passed'
104
104
 
105
105
  elif [ $retcode -eq 1 ]; then
106
106
  fails=$(( fails + 1 ))
107
107
  failstr="$failstr $test_case"
108
- puts 'failed'
108
+ puts 'Failed'
109
109
  report_case "$test_case"
110
110
 
111
111
  else
112
112
  errors=$(( errors + 1 ))
113
113
  errorstr="$errorstr $test_case"
114
- puts 'error'
114
+ puts 'Error'
115
115
  report_case "$test_case"
116
116
  fi
117
117
  fi
118
118
  done
119
119
  echo "$cases cases checked, $fails failed, $errors errored"
120
120
  if [ $fails -gt 0 ]; then
121
- echo "failed cases:${failstr}"
121
+ echo "Failed cases:${failstr}"
122
122
  fi
123
123
  if [ $errors -gt 0 ]; then
124
- echo "errored cases:${errorstr}"
124
+ echo "Errored cases:${errorstr}"
125
125
  fi
126
126
 
127
127
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gettc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.5
4
+ version: 1.7.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seri