Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
128 commits
Select commit Hold shift + click to select a range
02a0d7c
add procs
jiro4989 Feb 2, 2021
75f408b
impl ppm
jiro4989 Feb 2, 2021
b32ec3a
impl pgm
jiro4989 Feb 2, 2021
1d312b4
impl pbm
jiro4989 Feb 2, 2021
7ba7ec2
fix
jiro4989 Feb 2, 2021
0eaa3b5
fix
jiro4989 Feb 2, 2021
2fe538b
delete
jiro4989 Feb 2, 2021
61c5cea
impl write
jiro4989 Feb 2, 2021
fb607bf
fix
jiro4989 Feb 2, 2021
ef4d535
fix
jiro4989 Feb 2, 2021
edcacab
fix
jiro4989 Feb 2, 2021
f0e19f8
change
jiro4989 Feb 2, 2021
78de44a
rename
jiro4989 Feb 2, 2021
c2d940d
rename
jiro4989 Feb 2, 2021
42f2f10
rename
jiro4989 Feb 2, 2021
993e4b6
impl
jiro4989 Feb 2, 2021
483f98f
fix p1
jiro4989 Feb 2, 2021
9279c31
TODO
jiro4989 Feb 2, 2021
798e7fa
wip
jiro4989 Feb 2, 2021
e86f985
wip
jiro4989 Feb 2, 2021
4bc9e76
wip
jiro4989 Feb 3, 2021
3cc78c7
pbm
jiro4989 Feb 3, 2021
74ff3f9
wip
jiro4989 Feb 3, 2021
c3c564e
fix
jiro4989 Feb 3, 2021
9991dc4
rename
jiro4989 Feb 3, 2021
0c139ba
fix
jiro4989 Feb 3, 2021
926968c
delete unused procedures
jiro4989 Feb 3, 2021
409bfa3
pbm
jiro4989 Feb 3, 2021
f800397
fix
jiro4989 Feb 3, 2021
8f0658a
add monit
jiro4989 Feb 3, 2021
3f422e5
add test
jiro4989 Feb 3, 2021
1e5d1e6
fix
jiro4989 Feb 3, 2021
59b497d
add test
jiro4989 Feb 3, 2021
1e99b98
add test
jiro4989 Feb 3, 2021
295ad8c
fix
jiro4989 Feb 3, 2021
a474ad5
add test
jiro4989 Feb 3, 2021
9c9d588
add test
jiro4989 Feb 3, 2021
ea3d9da
add test
jiro4989 Feb 3, 2021
cb5e095
add test
jiro4989 Feb 3, 2021
a67fac1
version up
jiro4989 Feb 3, 2021
de2b1d8
commentout
jiro4989 Feb 3, 2021
243e0f2
add test
jiro4989 Feb 3, 2021
03cee29
add test
jiro4989 Feb 3, 2021
f5becf5
add test
jiro4989 Feb 3, 2021
73686bc
add test
jiro4989 Feb 3, 2021
92b3162
fix
jiro4989 Feb 3, 2021
4428e9a
delete unused test
jiro4989 Feb 3, 2021
34b5c8e
add test case
jiro4989 Feb 4, 2021
d0b50fa
add constructor
jiro4989 Feb 4, 2021
eceb022
add test
jiro4989 Feb 4, 2021
82fb2c7
wip
jiro4989 Feb 13, 2021
5763297
fix
jiro4989 Feb 13, 2021
2df8827
fix
jiro4989 Feb 13, 2021
5e14819
fix
jiro4989 Feb 13, 2021
2f5b54c
fix
jiro4989 Feb 13, 2021
cdee064
fix
jiro4989 Feb 13, 2021
b18a08e
fix
jiro4989 Feb 13, 2021
a3984a7
fix
jiro4989 Feb 13, 2021
ffeb790
change function name
jiro4989 Feb 13, 2021
45e7951
add read
jiro4989 Feb 13, 2021
a6f1583
wip
jiro4989 Feb 15, 2021
4d64458
to proc
jiro4989 Feb 17, 2021
41ed45e
to proc
jiro4989 Feb 17, 2021
f041e50
to proc
jiro4989 Feb 17, 2021
d760b18
change proc name
jiro4989 Feb 17, 2021
4ccfdd1
add p1 read
jiro4989 Feb 17, 2021
3b74658
impl
jiro4989 Feb 17, 2021
34decad
remove unused code
jiro4989 Feb 17, 2021
a3c5390
impl
jiro4989 Feb 17, 2021
1118a81
add early return
jiro4989 Feb 17, 2021
73c77ec
add early return
jiro4989 Feb 17, 2021
05c192d
rgb
jiro4989 Feb 17, 2021
d9a3a50
remove comment
jiro4989 Feb 17, 2021
a6d02b9
古いコードを全部削除した
jiro4989 Feb 17, 2021
dfec697
publicなプロシージャをprivateに変更
jiro4989 Feb 17, 2021
8c3c74c
コメント行を読み取れるように
jiro4989 Feb 17, 2021
d0e50d2
writePNMをPNMオブジェクトを受け取るように変更
jiro4989 Feb 17, 2021
2e5c6c7
ファイルを直接扱うためのプロシージャを追加
jiro4989 Feb 17, 2021
1d2d9d9
いらない気がしたのでPoint型を削除
jiro4989 Feb 17, 2021
9e619d0
impl pgm, ppm
jiro4989 Mar 14, 2021
a909987
fix
jiro4989 Mar 15, 2021
72f23d4
add cfg
jiro4989 Mar 15, 2021
777b0a2
backup
jiro4989 Mar 15, 2021
e399ed6
add example code
jiro4989 Mar 15, 2021
7b0c4c5
add task
jiro4989 Mar 15, 2021
dfd62ec
add gitignore
jiro4989 Mar 15, 2021
9666b31
fix Ci
jiro4989 Mar 15, 2021
d744fa9
add proc
jiro4989 Mar 15, 2021
d4fcdb9
add example
jiro4989 Mar 15, 2021
4abb310
add validation
jiro4989 Mar 15, 2021
7f12062
add read pgm p2 example
jiro4989 Mar 16, 2021
f2867c2
add read ppm p3 example
jiro4989 Mar 16, 2021
b8cf9bc
add ignore
jiro4989 Mar 16, 2021
11c84dc
change read descriptor validation
jiro4989 Mar 16, 2021
bc56140
add func
jiro4989 Mar 16, 2021
946c0d5
add readComment
jiro4989 Mar 16, 2021
56128fc
add readWidthHeight
jiro4989 Mar 16, 2021
fa09417
add readMax
jiro4989 Mar 16, 2021
872ea42
add comment
jiro4989 Mar 16, 2021
b450d66
delete unused procs
jiro4989 Mar 16, 2021
a6f1e6f
delete code
jiro4989 Mar 16, 2021
e9a7399
add file procs
jiro4989 Mar 16, 2021
d318d74
add pbm
jiro4989 Mar 16, 2021
b22f802
fix comment
jiro4989 Mar 20, 2021
611d8a1
add test case
jiro4989 Mar 20, 2021
6c3fcfd
update ignore pattern
jiro4989 Mar 20, 2021
d2f71a8
change type name
jiro4989 Mar 20, 2021
de14314
add exception pattern
jiro4989 Mar 20, 2021
42226e7
change extends type
jiro4989 Mar 20, 2021
952a020
fix ignore
jiro4989 Mar 20, 2021
49f9b4c
add illegal test case
jiro4989 Mar 20, 2021
63fe5f9
add validation
jiro4989 Mar 20, 2021
7f20b56
add illegal test case
jiro4989 Mar 20, 2021
00a008d
fix ignore
jiro4989 Mar 20, 2021
510a5f6
add illegal test case
jiro4989 Mar 20, 2021
5ad602b
change comment field accessor
jiro4989 Mar 20, 2021
122ca96
add comment test case
jiro4989 Mar 20, 2021
cd9f60f
add proc
jiro4989 Mar 20, 2021
737b4fe
upgrade nim version
jiro4989 Mar 20, 2021
94d6610
change test versions
jiro4989 Mar 20, 2021
0719c7a
add test cases
jiro4989 Mar 20, 2021
2b1f96f
add empty test file
jiro4989 Mar 20, 2021
f0b14be
add validations
jiro4989 Mar 20, 2021
72bd6a4
add test cases
jiro4989 Mar 20, 2021
0d6b14b
add validation
jiro4989 Mar 20, 2021
c800354
add test cases
jiro4989 Mar 20, 2021
255b843
add test cases
jiro4989 Mar 20, 2021
f1c5215
fix read text data part of ppm
jiro4989 Mar 20, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
nim-version: ['1.0.x', '1.2.x', 'stable']
nim-version: ['1.4.4', '1.4.x', 'stable']
steps:
- uses: actions/checkout@v1
- uses: jiro4989/setup-nim-action@v1
Expand All @@ -24,16 +24,16 @@ jobs:
- name: Install test
run: nimble install -Y
- name: Unit test
run: nimble test -Y
- name: Examples test
run: |
find examples/ -mindepth 1 -type d | while read -r dir; do
(
cd "$dir"
nim c -d:release main.nim
./main
)
done
run: nimble tests
# - name: Examples test
# run: |
# find examples/ -mindepth 1 -type d | while read -r dir; do
# (
# cd "$dir"
# nim c -d:release main.nim
# ./main
# )
# done

docs:
runs-on: ubuntu-latest
Expand Down
8 changes: 5 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
tests/tpnm
tests/tutil
main
/nimcache/
outputGotten.txt
testresults/pattern.json
tests/*/*
!tests/*/*.*
14 changes: 14 additions & 0 deletions .monit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
%YAML 1.2
%TAG !n! tag:nimyaml.org,2016:
--- !n!custom:MonitorConfig
sleep: 1
targets:
-
name: Test
paths: [src, tests]
commands: [nimble test]
extensions: [.nim]
files: []
exclude_extensions: []
exclude_files: []
once: y
1 change: 1 addition & 0 deletions nim.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
path="./src"
7 changes: 5 additions & 2 deletions pnm.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "2.1.1"
version = "3.0.0"
author = "jiro4989"
description = "pnm is library for PNM (Portable AnyMap)."
license = "MIT"
Expand All @@ -9,10 +9,13 @@ srcDir = "src"

# Dependencies

requires "nim >= 0.19.4"
requires "nim >= 1.4.4"

import strformat

task tests, "Run tests":
exec "testament p 'tests/*/*.nim'"

task examples, "Run example code":
for d in ["write_pbm", "write_pgm", "write_ppm", "read_file"]:
withDir &"examples/{d}":
Expand Down
Loading