Skip to content

Commit

Permalink
narrow down
Browse files Browse the repository at this point in the history
  • Loading branch information
planetis-m committed Oct 21, 2024
1 parent ef11146 commit 433b9ec
Showing 1 changed file with 1 addition and 35 deletions.
36 changes: 1 addition & 35 deletions tests/basic_window.nim
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#
# ****************************************************************************************

import raylib, rlgl, raymath, rmem, reasings, std/[os, times, monotimes, syncio, streams, strutils, parseutils, osproc, locks, terminal]
import raylib, rlgl, raymath, rmem, reasings, std/[osproc, locks, terminal]

# ----------------------------------------------------------------------------------------
# Global Variables Definition
Expand Down Expand Up @@ -59,40 +59,6 @@ proc testDrawTextWithFont() =
drawText(font, "Hello with custom font", position, 24, 2, DarkGray)

# Additional module tests
proc testOs() =
echo "Current directory: ", getCurrentDir()
echo "Temp directory: ", getTempDir()

proc testTimes() =
echo "Current time: ", now()
echo "Current UTC time: ", utc(now())

proc testMonotimes() =
let start = getMonoTime()
sleep(100)
let duration = getMonoTime() - start
echo "Slept for ", duration

proc testSyncio() =
let file = open("test.txt", fmWrite)
file.write("Hello, SyncIO!")
file.close()

proc testStreams() =
let strm = newFileStream("test_stream.txt", fmWrite)
if not isNil(strm):
strm.writeLine("Hello, Streams!")
strm.close()

proc testStrutils() =
let str = " Hello, World! "
echo "Stripped: ", strip(str)
echo "To lower: ", toLowerAscii(str)

proc testParseutils() =
var value: int
discard parseInt("42", value)
echo "Parsed integer: ", value

proc testOsproc() =
let (output, exitCode) = execCmdEx("echo Hello from subprocess")
Expand Down

0 comments on commit 433b9ec

Please sign in to comment.