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:
ringabout 2022-09-28 02:06:23 +08:00 • committed by GitHub
commit 3d2f0e2c7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
194 changed files with 299 additions and 54 deletions

View file

@ -17,7 +17,7 @@ Second readLine raised an exception
'''
"""
import terminal, colors, re, encodings, strutils, os
import std/[terminal, colors, re, encodings, strutils, os, assertions, syncio]
block t9394:
@ -77,7 +77,7 @@ block t5349:
const fn = "file9char.txt"
writeFile(fn, "123456789")
var f = system.open(fn)
var f = syncio.open(fn)
echo getFileSize(f)
var line = newString(10)