From ad02c455690084ef39fdf957944c6d8ad5e2407b Mon Sep 17 00:00:00 2001 From: Erik Corry <erik@toit.io> Date: Wed, 8 Nov 2023 19:07:52 +0100 Subject: [PATCH] Add a test that runs system.platform and system.architecture. (#1954) --- tests/platform-test.toit | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/platform-test.toit diff --git a/tests/platform-test.toit b/tests/platform-test.toit new file mode 100644 index 000000000..b029051f0 --- /dev/null +++ b/tests/platform-test.toit @@ -0,0 +1,13 @@ +// Copyright (C) 2023 Toitware ApS. +// Use of this source code is governed by a Zero-Clause BSD license that can +// be found in the tests/LICENSE file. + +import expect show * +import system + +main: + p/string := system.platform + a/string := system.architecture + expect p.size >= 3 + expect a.size >= 3 + print "$p $a"