Skip to content

Some tests not running in repository #56

@headius

Description

@headius

I discovered today that some of the tests in the repository do not seem to be running. Specifically it seems like the inherited tests for TestStringScannerFixedAnchor are omitted.

This masked the fact that JRuby did not properly implement fixed_anchor, which I'm now fixing.

Here's the verbose test output from command line, showing that only four tests run with fixed_anchor behavior enabled:

[] strscan $ jruby -I lib -I ext/jruby/lib -I test/lib -rhelper test/strscan/test_stringscanner.rb -v
/Users/headius/.gem/jruby/3.1.0/gems/power_assert-2.0.3/lib/power_assert.rb:8: warning: tracing (e.g. set_trace_func) will not capture all events without --debug flag
/Users/headius/.gem/jruby/3.1.0/gems/power_assert-2.0.3/lib/power_assert.rb:8: warning: tracing (e.g. set_trace_func) will not capture all events without --debug flag
Loaded suite test/strscan/test_stringscanner
Started
TestStringScanner: 
  test_AREF:																						.: (0.020898)
  test_aref_without_regex:																				.: (0.002298)
  test_bol?:																						.: (0.012420)
  test_captures:																					.: (0.001524)
  test_charpos_not_use_string_methods:																			.: (0.008971)
  test_check:																						.: (0.002447)
  test_check_until:																					.: (0.006086)
  test_concat:																						.: (0.004053)
  test_const_Id:																					.: (0.006021)
  test_const_Version:																					.: (0.001307)
  test_dup:																						.: (0.006789)
  test_encoding:																					.: (0.001849)
  test_encoding_string:																					.: (0.000913)
  test_eos?:																						.: (0.002434)
  test_exist_p:																						.: (0.001809)
  test_exist_p_string:																					.: (0.002137)
  test_fixed_anchor_false:																				.: (0.006418)
  test_fixed_anchor_true:																				.: (0.004086)
  test_generic_regexp:																					.: (0.001350)
  test_get_byte:																					.: (0.002466)
  test_getch:																						.: (0.003643)
  test_inspect:																						.: (0.002125)
  test_inspect2:																					.: (0.002130)
  test_invalid_encoding_string:																				.: (0.021611)
  test_match_p:																						.: (0.001632)
  test_matched:																						.: (0.005154)
  test_matched_size:																					.: (0.002953)
  test_named_captures:																					.: (0.002098)
  test_peek:																						.: (0.002760)
  test_pos:																						.: (0.001662)
  test_pos_unicode:																					.: (0.002482)
  test_post_match:																					.: (0.002778)
  test_pre_match:																					.: (0.001877)
  test_reset:																						.: (0.001215)
  test_rest:																						.: (0.001267)
  test_rest_size:																					.: (0.001783)
  test_s_allocate:																					.: (0.004501)
  test_s_mustc:																						.: (0.000981)
  test_s_new:																						.: (0.001829)
  test_scan:																						.: (0.003598)
  test_scan_aref_repeatedly:																				.: (0.002878)
  test_scan_full:																					.: (0.003177)
  test_scan_string:																					.: (0.001844)
  test_search_full:																					.: (0.004376)
  test_set_pos:																						.: (0.001067)
  test_size:																						.: (0.000754)
  test_skip:																						.: (0.002394)
  test_skip_until:																					.: (0.001281)
  test_skip_with_begenning_of_line_anchor_match:																	.: (0.039607)
  test_skip_with_begenning_of_string_anchor_match:																	.: (0.006401)
  test_string:																						.: (0.004728)
  test_string_append:																					.: (0.002371)
  test_string_set_is_equal:																				.: (0.003957)
  test_terminate:																					.: (0.001982)
  test_unscan:																						.: (0.003063)
  test_values_at:																					.: (0.002842)
  TestStringScannerFixedAnchor: 
    test_skip_with_begenning_of_line_anchor_match:																	.: (0.002285)
    test_skip_with_begenning_of_line_anchor_not_match:																	.: (0.000917)
    test_skip_with_begenning_of_string_anchor_match:																	.: (0.001412)
    test_skip_with_begenning_of_string_anchor_not_match:																.: (0.003527)

Finished in 0.307136 seconds.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
60 tests, 339 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
195.35 tests/s, 1103.75 assertions/s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions