Sha256: 15382c3a39e46e95319fe9aac47cd732df7b5a5c8d3d5a72b67bf169fbd6835f
Contents?: true
Size: 518 Bytes
Versions: 132
Compression:
Stored size: 518 Bytes
Contents
import org.scalatest.{FlatSpec, Matchers} class AcronymTest extends FlatSpec with Matchers { private val acronyms = List( ("Portable Network Graphics", "PNG"), ("Ruby on Rails", "ROR"), ("HyperText Markup Language", "HTML"), ("First In, First Out", "FIFO"), ("PHP: Hypertext Preprocessor", "PHP"), ("Complementary metal-oxide semiconductor", "CMOS")) it should "create acronyms" in { acronyms.foreach{case (phrase, acronym) => Acronym.abbreviate(phrase) should equal(acronym)} } }
Version data entries
132 entries across 132 versions & 1 rubygems