From 919942b1b5222cf00a5f68605bc383462770fa22 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Thu, 1 Oct 2026 17:23:00 -0400 Subject: gleam sisudoc-ocda-lib --- gleam/test/ocda_lib_test.gleam | 53 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 51 insertions(+), 2 deletions(-) (limited to 'gleam/test') diff --git a/gleam/test/ocda_lib_test.gleam b/gleam/test/ocda_lib_test.gleam index 02fe463..ecd1a6a 100644 --- a/gleam/test/ocda_lib_test.gleam +++ b/gleam/test/ocda_lib_test.gleam @@ -1,3 +1,52 @@ +/////+ +////- Name: SisuDoc Spine, Doc Reform [a part of] +//// - Description: documents, structuring, processing, publishing, search +//// - static content generator +//// +//// - Author: Ralph Amissah +//// [ralph.amissah@gmail.com] +//// +//// - Copyright: (C) 2015 (continuously updated, current 2026) Ralph Amissah, All Rights Reserved. +//// +//// - License: AGPL 3 or later: +//// +//// Spine (SiSU), a framework for document structuring, publishing and +//// search +//// +//// Copyright (C) Ralph Amissah +//// +//// This program is free software: you can redistribute it and/or modify it +//// under the terms of the GNU AFERO General Public License as published by the +//// Free Software Foundation, either version 3 of the License, or (at your +//// option) any later version. +//// +//// This program is distributed in the hope that it will be useful, but WITHOUT +//// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +//// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +//// more details. +//// +//// You should have received a copy of the GNU General Public License along with +//// this program. If not, see [https://www.gnu.org/licenses/]. +//// +//// If you have Internet connection, the latest version of the AGPL should be +//// available at these locations: +//// [https://www.fsf.org/licensing/licenses/agpl.html] +//// [https://www.gnu.org/licenses/agpl.html] +//// +//// - Spine (by Doc Reform, related to SiSU) uses standard: +//// - docReform markup syntax +//// - standard SiSU markup syntax with modified headers and minor modifications +//// - docReform object numbering +//// - standard SiSU object citation numbering & system +//// +//// - Homepages: +//// [https://www.sisudoc.org] +//// [https://www.doc-reform.org] +//// +//// - Git +//// [https://git.sisudoc.org/] +//// +////+/ import gleam/dict import gleam/list import simplifile @@ -36,7 +85,7 @@ const minimal = "% SiSU Document Abstraction v2.0 .part: body .parent: 1 | First line -| +| | Third line, after a blank one } @@ -139,7 +188,7 @@ pub fn pod_source_test() { /// only zstd on the BEAM is a NIF that fetches zstd in its own build. pub fn zstd_refusal_test() { let path = "test/fixture-zstd-frame.sisupod" - let assert Ok(_) = simplifile.write_bits(path, <<0x28, 0xB5, 0x2F, 0xFD, 0>>) + let assert Ok(_) = simplifile.write_bits(path, ) let assert Error(message) = load.load(path, "", False) message |> string.contains(contain: "zstd") |> should.be_true message |> string.contains(contain: "zstd -d") |> should.be_true -- cgit v1.2.3