Created
February 28, 2023 10:45
-
-
Save drkameleon/e0a2285a464b79b3a9fd55674bc9a79d to your computer and use it in GitHub Desktop.
Generated output after running `arturo tests/unittests/lib.files.art`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Created: temp/ | |
>> copy | |
Hello, world! | |
>> copy.directory - with empty folders | |
temp/dest/file.txt | |
temp/dest/folderA: | |
A | |
B | |
C | |
temp/dest/folderB: | |
A | |
B | |
C | |
temp/dest/folderC: | |
A | |
B | |
C | |
>> copy.directory - with mixed folders | |
ls: --recursive: No such file or directory | |
temp/dest/file.txt | |
temp/dest/folderA: | |
A | |
B | |
C | |
file.txt | |
temp/dest/folderB: | |
A | |
B | |
C | |
temp/dest/folderC: | |
A | |
B | |
C | |
>> delete | |
Hello, world! | |
deleting... | |
cat: temp/file.txt: No such file or directory | |
>> delete.directory - with empty folders | |
temp/dest: | |
file.txt | |
folderA | |
folderB | |
folderC | |
temp/folderA: | |
A | |
B | |
C | |
temp/folderB: | |
A | |
B | |
C | |
temp/folderC: | |
A | |
B | |
C | |
temp/toCopy: | |
file.txt | |
folderA | |
folderB | |
folderC | |
Deleting... | |
now: dest | |
toCopy | |
>> delete.directory - with mixed folders | |
temp/file.txt | |
temp/dest: | |
file.txt | |
folderA | |
folderB | |
folderC | |
temp/folderA: | |
A | |
B | |
C | |
file.txt | |
temp/folderB: | |
A | |
B | |
C | |
temp/folderC: | |
A | |
B | |
C | |
temp/toCopy: | |
file.txt | |
folderA | |
folderB | |
folderC | |
Deleting... | |
temp/file.txt | |
temp/dest: | |
file.txt | |
folderA | |
folderB | |
folderC | |
temp/toCopy: | |
file.txt | |
folderA | |
folderB | |
folderC | |
>> move | |
Hello, world! | |
cat: temp/toMove/moved.txt: No such file or directory | |
>> move.directory - with empty folders | |
temp/dest/file.txt | |
temp/dest/folderA: | |
A | |
B | |
C | |
file.txt | |
temp/dest/folderB: | |
A | |
B | |
C | |
temp/dest/folderC: | |
A | |
B | |
C | |
temp/toMove/folderA: | |
A | |
B | |
C | |
temp/toMove/folderB: | |
A | |
B | |
C | |
temp/toMove/folderC: | |
A | |
B | |
C | |
>> move.directory - with mixed folders | |
ls: --recursive: No such file or directory | |
temp/dest/file.txt | |
temp/dest/folderA: | |
A | |
B | |
C | |
file.txt | |
temp/dest/folderB: | |
A | |
B | |
C | |
temp/dest/folderC: | |
A | |
B | |
C | |
>> permissions | |
[user:[read:true write:true execute:false] group:[read:true write:false execute:false] others:[read:true write:false execute:false]] | |
:dictionary | |
>> read | |
Hello, world | |
This is a multiline File. | |
:) | |
:string | |
Hello, world | |
This is a multiline File. | |
:) | |
>> read.lines | |
The Language ------------------------------ Arturo is an independently-developed, modern programming language, vaguely related to various other ones - including but not limited to: Logo, Rebol, Forth, Ruby, Haskell, D, Smalltalk, Tcl, and Lisp. The language has been designed following some very simple and straightforward principles: - Code is just a list of words, symbols and literal values - Words and symbols within a block are interpreted - when needed - according to the context - No reserved words or keywords - look for them as hard as you can; there are absolutely none | |
:block | |
>> read.json | |
[name:Arturo version:0.9.83 build:b/12 platform:amd/win10] | |
:dictionary | |
>> read.csv | |
[language; version; platform] [Arturo; 0.9.83; win10] [Python; 3.9; gnu/linux] [Ruby; 3.2.1; macOS] | |
:block | |
>> read.csv.withHeaders | |
[language; version; platform:Arturo; 0.9.83; win10] [language; version; platform:Python; 3.9; gnu/linux] [language; version; platform:Ruby; 3.2.1; macOS] | |
:block | |
>> read.html | |
[attrs:[] text: | |
Unordered List with Square Bullets | |
Arturo | |
Python | |
Ruby | |
Hello | |
World | |
body:[attrs:[] text: | |
Unordered List with Square Bullets | |
Arturo | |
Python | |
Ruby | |
Hello | |
World | |
h2:[attrs:[] text:Unordered List with Square Bullets] ul:[attrs:[style:list-style-type:square;] text: | |
Arturo | |
Python | |
Ruby | |
li:[[attrs:[] text:Arturo] [attrs:[] text:Python] [attrs:[] text:Ruby]]] p:[attrs:[] text: | |
Hello | |
World | |
br:[attrs:[] text:]]]] | |
>> read.xml | |
[name:Arturo Programming Language author:Yanis Zafiropulos category:Scripting and Concatenative _tag:language id:art] [name:CPython author:Guido van Rossum category:Scripting and Object Oriented _tag:language id:py] [name:Ruby author:Yukihiro Matsumoto category:Scripting and Object Oriented _tag:language id:rb] | |
:block | |
>> read.markdown | |
<h1>Arturo Basics</h1> | |
<blockquote> | |
<p>Arturo is a very simple language. | |
Even without any prior experience, | |
I estimate it would take you roughly half an hour | |
before you are comfortable enough to write your first program.</p> | |
</blockquote> | |
<hr> | |
<ul> | |
<li><a href="https://arturo-lang.io/documentation/library">Library</a></li> | |
<li><a href="https://arturo-lang.io/documentation/examples">Examples</a></li> | |
</ul> | |
<h2>First Steps</h2> | |
<ol> | |
<li><a href="https://arturo-lang.io/documentation/language/#the-main-components">Main Components</a></li> | |
<li><a href="https://arturo-lang.io/documentation/language/#precedence-and-evaluation">Precedence & Evaluation</a></li> | |
<li><a href="https://arturo-lang.io/documentation/language/#scope-and-rules">Scope & Rules</a></li> | |
</ol> | |
:string | |
>> read.toml | |
[arturo:[package:[name:TOML Reader description:Yet another TOML Reader version:1.0.1 authors:[author A author B] license:MIT] config:[version:^0.9 pkg-manager:^0.2]]] | |
:dictionary | |
>> read.toml -- from ini file | |
[package:[name:TOML Reader description:Yet another TOML Reader version:1.0.1 authors:[author A author B] license:MIT] config:[version:^0.9 pkg-manager:^0.2]] | |
:dictionary | |
>> read.binary | |
48 65 6C 6C 6F 2C 20 57 6F 72 6C 64 21 | |
:binary | |
>> read.file | |
temp/test.bin | |
:string | |
error raised! | |
>> rename | |
Hello, world! | |
>> rename.directory | |
dest | |
folder | |
toCopy | |
toMove | |
dest | |
directory | |
toCopy | |
toMove | |
>> timestamp | |
assertions passed | |
>> zip & unzip | |
dest | |
directory | |
toCopy | |
toMove | |
--- | |
temp/dest.zip | |
temp/dest: | |
file.txt | |
folderA | |
folderB | |
folderC | |
temp/directory: | |
temp/toCopy: | |
file.txt | |
folderA | |
folderB | |
folderC | |
temp/toMove: | |
file.txt | |
folderA | |
folderB | |
folderC | |
--- | |
temp/dest.zip | |
temp/README.md: | |
README.md | |
temp/dest: | |
file.txt | |
folderA | |
folderB | |
folderC | |
temp/directory: | |
temp/toCopy: | |
file.txt | |
folderA | |
folderB | |
folderC | |
temp/toMove: | |
file.txt | |
folderA | |
folderB | |
folderC | |
>> volume | |
13B | |
>> write | |
Hello, world! | |
>> write.append | |
Hello, world! | |
From Arturo's World! | |
>> write.directory | |
README.md | |
dest | |
directory | |
folder | |
toCopy | |
toMove | |
>> write.json | |
{ | |
"name": "Arturo", | |
"version": "1.9.83", | |
"build": "b/12", | |
"platform": "amd/win10" | |
} | |
>> write.json.compact | |
{"name":"Arturo","version":"1.9.83","build":"b/12","platform":"amd/win10"} | |
>> write.binary | |
Hello, world! | |
>> exists? | |
file does not exist | |
file exists | |
>> exists?.directory | |
directory does not exist | |
directory exists | |
>> hidden? | |
false | |
false | |
true | |
true | |
true | |
true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment