Move relative date formatting to separate function
[tig.git] / test / grep / editor-test
blob85a0be5a2c71f82dfb5d9f52a22d264579cf8df5
1 #!/bin/sh
3 . libtest.sh
4 . libgit.sh
6 export LINES=16
8 tigrc <<EOF
9 set vertical-split = no
10 set line-graphics = ascii
11 EOF
13 steps '
14 :save-display grep-scalajs.screen
17 :edit
19 :10
20 :exec !vim +%(lineno) %(file)
23 in_work_dir create_repo_from_tgz "$base_dir/files/scala-js-benchmarks.tgz"
25 test_tig grep JSExport
27 assert_equals 'grep-scalajs.screen' <<EOF
28 common/src/main/scala/org/scalajs/benchmark/Benchmark.scala
29 13| import scala.scalajs.js.annotation.JSExport
30 15| @JSExport
31 27| @JSExport
32 32| @JSExport
33 100| @JSExport
34 deltablue/src/main/scala/org/scalajs/benchmark/deltablue/DeltaBlue.scala
35 49| import scala.scalajs.js.annotation.JSExport
36 51| @JSExport
37 56| @JSExport
38 richards/src/main/scala/org/scalajs/benchmark/richards/Richards.scala
39 48| import scala.scalajs.js.annotation.JSExport
40 53| @JSExport
41 sudoku/src/main/scala/org/scalajs/benchmark/sudoku/Sudoku.scala
42 [grep] common/src/main/scala/org/scalajs/benchmark/Benchmark.scala - line 1 o73%
43 EOF
45 assert_equals 'editor.log' <<EOF
46 +15 common/src/main/scala/org/scalajs/benchmark/Benchmark.scala
47 @JSExport
48 +56 deltablue/src/main/scala/org/scalajs/benchmark/deltablue/DeltaBlue.scala
49 @JSExport
50 EOF