Skip to content

Commit

Permalink
added a test
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mie6 committed Feb 26, 2024
1 parent 94ff2ec commit e66916e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions golden/helloworld.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Hello world,
This is a file!

It spans many lines.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright 2024 Golden Scala Contributors <https://github.com/j-mie6/golden-scala/graphs/contributors>
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package org.scalatest.golden

import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers._

// this is soooo meta lol
class GoldenSuiteTest extends AnyFlatSpec with GoldenMatchers {
"golden tests" should "register" in {
"""Hello world,
|This is a file!
|
|It spans many lines.
|""".stripMargin should matchGolden("golden/helloworld.golden")
}
}

0 comments on commit e66916e

Please sign in to comment.