* [ruby-core:104539] [Ruby master Bug#18027] test/ruby/enc/test_emoji_breaks.rb does not use the file emoji-variation-sequences.txt
@ 2021-07-08 6:25 duerst
2021-08-17 6:45 ` [ruby-core:104944] " duerst
2021-08-17 7:44 ` [ruby-core:104946] " duerst
0 siblings, 2 replies; 3+ messages in thread
From: duerst @ 2021-07-08 6:25 UTC (permalink / raw
To: ruby-core
Issue #18027 has been reported by duerst (Martin Dürst).
----------------------------------------
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
* 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: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ruby-core:104944] [Ruby master Bug#18027] test/ruby/enc/test_emoji_breaks.rb does not use the file emoji-variation-sequences.txt
2021-07-08 6:25 [ruby-core:104539] [Ruby master Bug#18027] test/ruby/enc/test_emoji_breaks.rb does not use the file emoji-variation-sequences.txt duerst
@ 2021-08-17 6:45 ` duerst
2021-08-17 7:44 ` [ruby-core:104946] " duerst
1 sibling, 0 replies; 3+ messages in thread
From: duerst @ 2021-08-17 6:45 UTC (permalink / raw
To: ruby-core
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: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ruby-core:104946] [Ruby master Bug#18027] test/ruby/enc/test_emoji_breaks.rb does not use the file emoji-variation-sequences.txt
2021-07-08 6:25 [ruby-core:104539] [Ruby master Bug#18027] test/ruby/enc/test_emoji_breaks.rb does not use the file emoji-variation-sequences.txt duerst
2021-08-17 6:45 ` [ruby-core:104944] " duerst
@ 2021-08-17 7:44 ` duerst
1 sibling, 0 replies; 3+ messages in thread
From: duerst @ 2021-08-17 7:44 UTC (permalink / raw
To: ruby-core
Issue #18027 has been updated by duerst (Martin Dürst).
Status changed from Open to Closed
Resolved with commit fd7f61c.
It turned out the problem was that in emoji-variation-sequences.txt, lines look like
`0023 FE0E ; text style ; # (1.1) NUMBER SIGN`
whereas in the other two files that we processed the same way, they look like
`23F0 ; Basic_Emoji; alarm clock # E0.6 [1] (⏰)`
(aligned to show the similarities and differences). The empty field between the second semicolon and the hash mark wasn't properly accounted for, but this has now been fixed in commit fd7f61c.
----------------------------------------
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-93310
* Author: duerst (Martin Dürst)
* Status: Closed
* 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/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-08-17 7:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-08 6:25 [ruby-core:104539] [Ruby master Bug#18027] test/ruby/enc/test_emoji_breaks.rb does not use the file emoji-variation-sequences.txt duerst
2021-08-17 6:45 ` [ruby-core:104944] " duerst
2021-08-17 7:44 ` [ruby-core:104946] " duerst
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).