意味 | 入出力 |
---|---|
Spade | S |
Heart | H |
Diamond | D |
Club | C |
なんか1年目末だか2年目だかに書いたのが出てきて面白かったから残しておく
水島宏太 (株式会社ドワンゴ)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MoreResultTest extends Specification { | |
private static Result result = new Result( | |
Parser.parse(ParserTest.bobio) | |
) | |
def test_enum() { | |
expect: | |
result.as('status', { it == '1' ? Status.OK : Status.NG }) == Status.OK | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class EitherTest extends Specification { | |
// テスト準備 | |
Either<String, Integer> r = Either.right(5) | |
Either<String, Integer> l = Either.left('parse error') | |
enum ResultType { | |
EVEN, ODD, PARSE_ERROR, RANGE_ERROR | |
} |
- https://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q1137013856
- fee とか?
- admission, sign-up, registration
- https://eikaiwa.weblio.jp/column/phrases/vocabulary/register-apply-enroll
- log-in, log-on, sign-in
- https://oshiete.goo.ne.jp/qa/7126503.html
OlderNewer