Skip to content

Commit

Permalink
Make tests compile
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Jan 26, 2024
1 parent 829162e commit 71fabca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/stacktrace.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import anticipation.*

import language.experimental.captureChecking

extension (error: Error) def stackTrace: StackTrace = StackTrace(error)
extension (error: Throwable) def stackTrace: StackTrace = StackTrace(error)

object StackTrace:
case class Method(className: Text, method: Text)
Expand Down
7 changes: 5 additions & 2 deletions src/test/tests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@
and limitations under the License.
*/

package rudiments
package digression

import probably.*
import rudiments.*
import anticipation.*
import gossamer.*
import fulminate.*
import eucalyptus.*, logging.stdout

import unsafeExceptions.canThrowAny
Expand All @@ -32,4 +35,4 @@ object Tests extends Suite(t"Rudiments Tests"):
List(1, 2, 3).map(_ / 0)
???
catch case err: Exception => err.stackTrace
.assert(_ == t"")
.assert()

0 comments on commit 71fabca

Please sign in to comment.