File tree Expand file tree Collapse file tree 1 file changed +12
-31
lines changed Expand file tree Collapse file tree 1 file changed +12
-31
lines changed Original file line number Diff line number Diff line change @@ -4,37 +4,18 @@ def setup
44 end
55
66 test ( '#each' ) do
7- records = @dataset . each . to_a
8- assert_equal ( [
9- 67753 ,
10- {
11- group_id : "000001" ,
12- is_noun : true ,
13- expansion_type : :always ,
14- lexeme_id : 1 ,
15- form_type : :typical ,
16- acronym_type : :typical ,
17- variant_type : :typical ,
18- categories : [ ] ,
19- notation : "曖昧" ,
20- } ,
21- {
22- group_id : "026068" ,
23- is_noun : true ,
24- expansion_type : :always ,
25- lexeme_id : 1 ,
26- form_type : :typical ,
27- acronym_type : :others ,
28- variant_type : :typical ,
29- categories : [ "IT" ] ,
30- notation : "サ終" ,
31- } ,
32- ] ,
33- [
34- records . size ,
35- records [ 0 ] . to_h ,
36- records [ -1 ] . to_h ,
37- ] )
7+ assert_equal ( {
8+ group_id : "000001" ,
9+ is_noun : true ,
10+ expansion_type : :always ,
11+ lexeme_id : 1 ,
12+ form_type : :typical ,
13+ acronym_type : :typical ,
14+ variant_type : :typical ,
15+ categories : [ ] ,
16+ notation : "曖昧" ,
17+ } ,
18+ @dataset . each . next . to_h )
3819 end
3920
4021 sub_test_case ( '#metadata' ) do
You can’t perform that action at this time.
0 commit comments