Upgrade to Pro — share decks privately, control downloads, hide ads and more …

RxTests

Yosuke Ishikawa
April 14, 2016
2.8k

 RxTests

RxSwift勉強会

Yosuke Ishikawa

April 14, 2016
Tweet

Transcript

  1. l e t c h a r a c t

    e r = s c h e d u l e r . c r e a t e O b s e r v e r ( C h a r a c t e r ) l e t s c h e d u l e r = T e s t S c h e d u l e r ( ) s c h e d u l e r . s c h e d u l e A t ( 1 0 ) { c h a r a c t e r . o n N e x t ( " a " ) } s c h e d u l e r . s c h e d u l e A t ( 2 0 ) { c h a r a c t e r . o n N e x t ( " b " ) } s c h e d u l e r . s c h e d u l e A t ( 3 0 ) { c h a r a c t e r . o n N e x t ( " c " ) } s c h e d u l e r . s t a r t ( ) X C T A s s e r t E q u a l ( c h a r a c t e r . e v e n t s , [ n e x t ( 1 0 , " a " ) , n e x t ( 2 0 , " b " ) , n e x t ( 3 0 , " c " ) , ] )