Sha256: 56bc92b88473e29dec04658a52c26d681115be8a10644dcccc504dd73acc4840

Contents?: true

Size: 490 Bytes

Versions: 37

Compression:

Stored size: 490 Bytes

Contents

import unittest

import acronym

suite "Acronym":
  
  test "basic":
    check abbreviate("Portable Network Graphics") == "PNG"

  test "lowercase_words":
    check abbreviate("Ruby on Rails") == "ROR"

  test "punctuation":
    check abbreviate("First In, First Out") == "FIFO"
    
  test "all_caps_words":
    check abbreviate("GNU Image Manipulation Program") == "GIMP"

  test "punctuation_without_whitespace":
    check abbreviate("Complementary metal-oxide semiconductor") == "CMOS"

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.179 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.178 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.177 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.176 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.175 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.174 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.173 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.172 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.171 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.170 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.169 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.167 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.166 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.165 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.164 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.163 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.162 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.161 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.160 tracks/nim/exercises/acronym/acronym_test.nim