package Ġmono . shape . extra . style Ċ Ċ import Ġkotlin . test . Test Ċ import Ġkotlin . test . assertFalse Ċ import Ġkotlin . test . assertTrue Ċ Ċ /** Ċ Ġ* ĠA Ġtest Ġfor Ġ[ Str aight Stroke Dash Pattern ]. Ċ Ġ*/ Ċ class ĠS tra ight Stroke Dash Pattern Test Ġ{ ĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Is Gap _ solid () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġpattern Ġ= ĠS tra ight Stroke Dash Pattern ( 1 , Ġ 0 , Ġ 0 ) ĊĠĠĠĠĠĠĠ ĠassertFalse ( pattern . is Gap ( 0 )) ĊĠĠĠĠĠĠĠ ĠassertFalse ( pattern . is Gap ( 1 )) ĊĠĠĠĠĠĠĠ ĠassertFalse ( pattern . is Gap ( 2 )) ĊĠĠĠĠĠĠĠ ĠassertFalse ( pattern . is Gap ( 3 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Is Gap _ 1 segment _ 1 gap _ 0 offset () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġpattern Ġ= ĠS tra ight Stroke Dash Pattern ( 1 , Ġ 1 , Ġ 0 ) ĊĠĠĠĠĠĠĠ ĠassertFalse ( pattern . is Gap ( 0 )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( pattern . is Gap ( 1 )) ĊĠĠĠĠĠĠĠ ĠassertFalse ( pattern . is Gap ( 2 )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( pattern . is Gap ( 3 )) ĊĠĠĠĠĠĠĠ ĠassertFalse ( pattern . is Gap ( 4 )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( pattern . is Gap ( 5 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Is Gap _ 1 segment _ 1 gap _ 1 offset () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġpattern Ġ= ĠS tra ight Stroke Dash Pattern ( 1 , Ġ 1 , Ġ 1 ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( pattern . is Gap ( 0 )) ĊĠĠĠĠĠĠĠ ĠassertFalse ( pattern . is Gap ( 1 )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( pattern . is Gap ( 2 )) ĊĠĠĠĠĠĠĠ ĠassertFalse ( pattern . is Gap ( 3 )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( pattern . is Gap ( 4 )) ĊĠĠĠĠĠĠĠ ĠassertFalse ( pattern . is Gap ( 5 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Is Gap _ 1 segment _ 1 gap _ minus 1 offset () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġpattern Ġ= ĠS tra ight Stroke Dash Pattern ( 1 , Ġ 1 , Ġ- 1 ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( pattern . is Gap ( 0 )) ĊĠĠĠĠĠĠĠ ĠassertFalse ( pattern . is Gap ( 1 )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( pattern . is Gap ( 2 )) ĊĠĠĠĠĠĠĠ ĠassertFalse ( pattern . is Gap ( 3 )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( pattern . is Gap ( 4 )) ĊĠĠĠĠĠĠĠ ĠassertFalse ( pattern . is Gap ( 5 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Is Gap _ 2 segment _ 1 gap _ 0 offset () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġpattern Ġ= ĠS tra ight Stroke Dash Pattern ( 2 , Ġ 1 , Ġ 0 ) ĊĠĠĠĠĠĠĠ ĠassertFalse ( pattern . is Gap ( 0 )) ĊĠĠĠĠĠĠĠ ĠassertFalse ( pattern . is Gap ( 1 )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( pattern . is Gap ( 2 )) ĊĠĠĠĠĠĠĠ ĠassertFalse ( pattern . is Gap ( 3 )) ĊĠĠĠĠĠĠĠ ĠassertFalse ( pattern . is Gap ( 4 )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( pattern . is Gap ( 5 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Is Gap _ 2 segment _ 1 gap _ 1 offset () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġpattern Ġ= ĠS tra ight Stroke Dash Pattern ( 2 , Ġ 1 , Ġ 1 ) ĊĠĠĠĠĠĠĠ ĠassertFalse ( pattern . is Gap ( 0 )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( pattern . is Gap ( 1 )) ĊĠĠĠĠĠĠĠ ĠassertFalse ( pattern . is Gap ( 2 )) ĊĠĠĠĠĠĠĠ ĠassertFalse ( pattern . is Gap ( 3 )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( pattern . is Gap ( 4 )) ĊĠĠĠĠĠĠĠ ĠassertFalse ( pattern . is Gap ( 5 )) ĊĠĠĠ Ġ} Ċ } Ċ