From: duerst Date: 2021-08-17T06:45:33+00:00 Subject: [ruby-core:104944] [Ruby master Bug#18027] test/ruby/enc/test_emoji_breaks.rb does not use the file emoji-variation-sequences.txt Issue #18027 has been updated by duerst (Martin D�rst). duerst (Martin D�rst) wrote: > In particular, I'm a `puts` debugger, but `puts` debugging doesn't seem to work well when testing. I found that adding and using the following method in the Test... class allowed me to use `log_test` instead of `puts` for debugging. If you know of a better way, please tell me. ```ruby def log_test(message) open('log_test.txt', 'a') { |f| f.write(message+"\n") } end ``` ---------------------------------------- Bug #18027: test/ruby/enc/test_emoji_breaks.rb does not use the file emoji-variation-sequences.txt https://bugs.ruby-lang.org/issues/18027#change-93308 * Author: duerst (Martin D�rst) * Status: Open * Priority: Normal * Assignee: duerst (Martin D�rst) * Target version: 3.1 * ruby -v: ruby 3.1.0dev (2021-06-03T06:59:33Z master 7e14762159) [x86_64-linux] * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- While working on issue #17750, I found out that the number of assertions is essentially the same whether or not the file emoji-variation-sequences.txt is included in the files used to create the test data. This is the case both before and after the move of this file. So it seems unrelated to the move of the file, or to the version upgrade. I have not yet been able to figure out a reason for this behavior; the structure of the file emoji-variation-sequences.txt looks just like the structure of the other three files (emoji-sequences.txt, emoji-test.txt, and emoji-zwj-sequences.txt). This bug serves to track this issue. Any hints appreciated. In particular, I'm a `puts` debugger, but `puts` debugging doesn't seem to work well when testing. -- https://bugs.ruby-lang.org/ Unsubscribe: