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.159 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.158 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.157 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.156 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.155 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.154 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.153 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.152 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.151 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.150 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.149 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.148 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.147 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.146 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.145 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.144 tracks/nim/exercises/acronym/acronym_test.nim
trackler-2.2.1.143 tracks/nim/exercises/acronym/acronym_test.nim