Skip to content

Commit f4ef6d8

Browse files
authored
Changes to allow doclayout 0.4 (#1)
* Allow doclayout 0.4 * Comment out test that fails with doclayout < 0.4.
1 parent 04eace2 commit f4ef6d8

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

hslua-module-doclayout.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ source-repository head
2929

3030
library
3131
build-depends: base >= 4.9 && < 5
32-
, doclayout >= 0.2 && < 0.4
32+
, doclayout >= 0.2 && < 0.5
3333
, hslua >= 2.1 && < 2.3
3434
, text >= 1.0 && < 1.3
3535
default-language: Haskell2010
@@ -52,7 +52,7 @@ library
5252

5353
test-suite hslua-module-doclayout-test
5454
build-depends: base >= 4.9 && < 5
55-
, doclayout >= 0.2 && < 0.4
55+
, doclayout >= 0.2 && < 0.5
5656
, hslua
5757
, hslua-module-doclayout
5858
, tasty

test/test-doclayout.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,8 @@ return {
238238
test('update_column', function ()
239239
local doc = 'long' .. doclayout.cr .. 'longer'
240240
assert.are_equal(doclayout.update_column(doc, 0), 6)
241-
assert.are_equal(doclayout.update_column(doclayout.empty, 42), 0)
241+
-- fails with doclayout < 0.4:
242+
-- assert.are_equal(doclayout.update_column(doclayout.empty, 42), 42)
242243
assert.are_equal(doclayout.update_column('four', 4), 8)
243244
end)
244245
},

0 commit comments

Comments
 (0)