Skip to content

Test failure: missing BlockCodes ? #94

Closed

Description

@andreasabel

The CI on macOS for GHC 9.6 reports a failed test case (ICU_VER=73.2):
https://github.com/haskell/text-icu/actions/runs/6341389638/job/17224925448#step:11:26

t_blockCode: [Failed]
*** Failed! (after 76 tests):
Exception:
  toEnum{BlockCode}: tag (322) is outside of enumeration's range (0,320)
  CallStack (from HasCallStack):
    error, called at Data/Text/ICU/Char.hsc:485:17 in text-icu-0.8.0.2-inplace:Data.Text.ICU.Char
'\203257'

The Windows CI has a similar test failure (ICU_VER=73.2):
https://github.com/haskell/text-icu/actions/runs/6341389638/job/17224926997#step:11:25

  t_blockCode: [Failed]
*** Failed! (after 47 tests):
Exception:
  toEnum{BlockCode}: tag (322) is outside of enumeration's range (0,320)
  CallStack (from HasCallStack):
    error, called at Data\Text\ICU\Char.hsc:485:17 in text-icu-0.8.0.2-inplace:Data.Text.ICU.Char
'\201586'

These could be symptomatic that text-icu has fallen behind the ICU lib.
ICU 72 has Unicode 15, but currently only ICU 70 is supported.

I suppose this package needs some updates to the state of the art.
ATTN: @vshabanov

Activity

  1. andreasabel commented on Sep 30, 2023

    @andreasabel
    MemberAuthor

    https://github.com/haskell/text-icu/actions/runs/6361312691/job/17275646782#step:11:957

      t_blockCode: [Failed]
    *** Failed! (after 7 tests):
    Exception:
      toEnum{BlockCode}: tag (326) is outside of enumeration's range (0,320)
      CallStack (from HasCallStack):
        error, called at Data\Text\ICU\Char.hsc:485:17 in text-icu-0.8.0.2-74el0JRRzFBG38VQ4Hqf7Y:Data.Text.ICU.Char
    '\73494'
    (used seed 2000976820720826537)
    
  2. andreasabel commented on Sep 30, 2023

    @andreasabel
    MemberAuthor

    Same with '\202654'

  3. vshabanov commented on Oct 1, 2023

    @vshabanov
    Collaborator

    Thank you, just uploaded text-icu-0.8.0.3 which fixes the issue.

  4. vshabanov commented on Oct 1, 2023

    @vshabanov
    Collaborator

    Some of the tests fail now because they use the pre-72 version of ICU

  5. juhp commented on Oct 2, 2023

    @juhp

    Yes I see for Stackage LTS:

                 : [Failed]                                                                                                             
               expected: [ChessSymbols,CjkUnifiedIdeographsExtensionH,Kawi]                                                             
                but got: [ChessSymbols,NoBlock,NoBlock]           
    

    It would be nice if there was some detection.

  6. andreasabel commented on Oct 2, 2023

    @andreasabel
    MemberAuthor

    Some of the tests fail now because they use the pre-72 version of ICU

    CI on ubuntu-22.04 fails now always. This platform comes with ICU 70.1, see https://github.com/haskell/text-icu/actions/runs/6371163841/job/17292886318#step:8:17.
    It would be good if text-icu worked smoothly for the latest Ubuntu LTSs (those shipped by github actions) also from the developer perspective. That means, cabal test should run out-of-the-box.

  7. juhp commented on Oct 2, 2023

    @juhp

    We should probably open a new issue or reopen this one?

    I need to allow the tests to fail in Nightly too

  8. vshabanov commented on Oct 4, 2023

    @vshabanov
    Collaborator

    Should be fixed in text-icu-0.8.0.4

  9. andreasabel commented on Oct 5, 2023

    @andreasabel
    MemberAuthor

    I deprecated 0.8.0.3 on hackage.

  10. juhp commented on Oct 9, 2023

    @juhp

    If you would like the testsuite re-enabled in Stackage, please open a PR for that, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions