[Groonga-commit] groonga/grntest [master] Don't show marks over term width

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Sep 26 00:39:25 JST 2012


Kouhei Sutou	2012-09-26 00:39:25 +0900 (Wed, 26 Sep 2012)

  New Revision: 27688378e865ee6d140fce6e0857760f018b3e64
  https://github.com/groonga/grntest/commit/27688378e865ee6d140fce6e0857760f018b3e64

  Log:
    Don't show marks over term width

  Modified files:
    lib/grntest/tester.rb

  Modified: lib/grntest/tester.rb (+3 -0)
===================================================================
--- lib/grntest/tester.rb    2012-09-26 00:35:43 +0900 (de1df9f)
+++ lib/grntest/tester.rb    2012-09-26 00:39:25 +0900 (2522ce6)
@@ -1929,6 +1929,9 @@ EOF
 
       private
       def report_test_result_mark(mark, result)
+        if @term_width < @current_column + mark.bytesize
+          puts
+        end
         print(colorize(mark, result))
         if @term_width <= @current_column
           puts
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index