diff --git a/preview/codly-languages/0.1.2/tests/basic-output/ref/1.png b/preview/codly-languages/0.1.2/tests/basic-output/ref/1.png new file mode 100644 index 0000000..92a6adc Binary files /dev/null and b/preview/codly-languages/0.1.2/tests/basic-output/ref/1.png differ diff --git a/preview/codly-languages/0.1.2/tests/basic-output/test.typ b/preview/codly-languages/0.1.2/tests/basic-output/test.typ new file mode 100644 index 0000000..fe3b50b --- /dev/null +++ b/preview/codly-languages/0.1.2/tests/basic-output/test.typ @@ -0,0 +1,71 @@ +#import "/lib.typ": * +#import "@preview/codly:1.0.0": * +#show: codly-init +#codly(languages: codly-languages) + +```python +print("Hello, World!") +``` + +```java +public class HelloWorld { + public static void main(String[] args) { + System.out.println("Hello, World!"); + } +} +``` + +```js +console.log("Hello, World!"); +``` + +```cpp +#include + +int main() { + std::cout << "Hello, World!" << std::endl; + return 0; +} +``` + +```rust +fn main() { + println!("Hello, World!"); +} +``` + +```cs +using System; + +class Program { + static void Main() { + Console.WriteLine("Hello, World!"); + } +} +``` + +```go +package main + +import "fmt" + +func main() { + fmt.Println("Hello, World!") +} +``` + +```swift +print("Hello, World!") +``` + +```php + +``` + +```kotlin +fun main() { + println("Hello, World!") +} +``` diff --git a/preview/codly-languages/0.1.2/tests/data-check/ref/1.png b/preview/codly-languages/0.1.2/tests/data-check/ref/1.png new file mode 100644 index 0000000..3575716 Binary files /dev/null and b/preview/codly-languages/0.1.2/tests/data-check/ref/1.png differ diff --git a/preview/codly-languages/0.1.2/test.typ b/preview/codly-languages/0.1.2/tests/data-check/test.typ similarity index 92% rename from preview/codly-languages/0.1.2/test.typ rename to preview/codly-languages/0.1.2/tests/data-check/test.typ index 5df568b..eda3e4b 100644 --- a/preview/codly-languages/0.1.2/test.typ +++ b/preview/codly-languages/0.1.2/tests/data-check/test.typ @@ -1,4 +1,4 @@ -#import "lib.typ": * +#import "/lib.typ": * #let base-languages = ( "aarch64", @@ -95,6 +95,9 @@ } } +Found all base languages! + + #let aliases = ( "arm", "bash", @@ -148,6 +151,10 @@ } } +Found all language aliases! + #if codly-languages.keys().len() != base-languages.len() + aliases.len() { panic("error: language count is incorrect") } + +Language key count matches: #codly-languages.keys().len() keys.