mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-26 17:24:02 +00:00
make more standard libraries work with nimPreviewSlimSystem (#20343)
* make more standard libraries work with `nimPreviewSlimSystem` * typo * part two * Delete specutils.nim * fixes more tests * more fixes * fixes tests * fixes three more tests * add formatfloat import * fix * last
This commit is contained in:
@@ -13,6 +13,8 @@ import compiler/nimpaths
|
||||
]#
|
||||
|
||||
import os
|
||||
when defined(nimPreviewSlimSystem):
|
||||
import std/assertions
|
||||
|
||||
# Note: all the const paths defined here are known at compile time and valid
|
||||
# so long Nim repo isn't relocated after compilation.
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
import std/assertions
|
||||
|
||||
|
||||
proc mismatch*[T](lhs: T, rhs: T): string =
|
||||
## Simplified version of `unittest.require` that satisfies a common use case,
|
||||
## while avoiding pulling too many dependencies. On failure, diagnostic
|
||||
|
||||
Reference in New Issue
Block a user