-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: fixed problems with tests (#41)
- corrected some minor problems within tests - removed the code block body measurement
- Loading branch information
1 parent
db33533
commit 31e6c45
Showing
33 changed files
with
43 additions
and
45 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
#import "@preview/cetz:0.3.1" | ||
#import "@preview/cetz-plot:0.1.0" |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,42 @@ | ||
#import "/src/lib.typ": catppuccin, flavors, get-flavor, config-code-blocks | ||
|
||
#set page(width: auto, height: auto) | ||
#import "/src/lib.typ": catppuccin, flavors, get-flavor, config-code-blocks | ||
|
||
#let perms = () | ||
#for flavor in flavors.keys() { | ||
#for flavor in flavors.values() { | ||
for code-block in (true, false) { | ||
for syntax in (true, false) { | ||
perms.push((flavor: flavor, code-block: code-block, syntax: syntax)) | ||
} | ||
} | ||
} | ||
|
||
#for p in perms [ | ||
#pagebreak(weak: true) | ||
#show: catppuccin.with(p.flavor, code-block: p.code-block, code-syntax: p.syntax) | ||
#for p in perms { | ||
show: catppuccin.with(p.flavor, code-block: p.code-block, code-syntax: p.syntax) | ||
pagebreak(weak: true) | ||
|
||
= #get-flavor(p.flavor).name | ||
- Code block: #p.code-block | ||
- Code syntax: #p.syntax | ||
block([ | ||
= #p.flavor.name | ||
- Code block: #p.code-block | ||
- Code syntax: #p.syntax | ||
|
||
```typ | ||
#import "/src/lib.typ": catppuccin, flavors, get-flavor | ||
```typ | ||
#import "/src/lib.typ": catppuccin, flavors, get-flavor | ||
#let perms = () | ||
#for flavor in flavors.values() { | ||
for code-block in (true, false) { | ||
for syntax in (true, false) { | ||
perms.push((flavor: flavor, code-block: code-block, syntax: syntax)) | ||
#let perms = () | ||
#for flavor in flavors.values() { | ||
for code-block in (true, false) { | ||
for syntax in (true, false) { | ||
perms.push((flavor: flavor, code-block: code-block, syntax: syntax)) | ||
} | ||
} | ||
} | ||
} | ||
#for p in perms [ | ||
#show: catppuccin.with(p.flavor, code-block: p.code-block, code-syntax: p.syntax) | ||
= #get-flavor(p.flavor).name | ||
== Code block: #p.code-block | ||
== Code syntax: #p.syntax | ||
] | ||
``` | ||
] | ||
#for p in perms [ | ||
#show: catppuccin.with(p.flavor, code-block: p.code-block, code-syntax: p.syntax) | ||
= #p.flavor.name | ||
== Code block: #p.code-block | ||
== Code syntax: #p.syntax | ||
] | ||
``` | ||
]) | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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