Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
e065703
add Pharo32-8.0 to travis.yml
vonbecmann Mar 10, 2021
ac17820
Merge pull request #1 from vonbecmann/patch-1
astares Mar 10, 2021
db5888a
Update README.md
astares Sep 10, 2023
59afe62
Update README.md
astares Sep 10, 2023
d65d24f
Add CI group
astares Sep 10, 2023
b614aac
Add Github action and smalltalk CI
astares Sep 10, 2023
17cf653
Add 6.1 to README
astares Sep 10, 2023
3fa2dae
Cleanup: Remove ConfigurationOfBitmapCharacterSet
astares Sep 10, 2023
428f22f
Merge pull request #3 from astares/issue_2
astares Sep 10, 2023
71e121c
Cleanups like formatting and lint checking
astares Sep 10, 2023
9adc978
Merge pull request #4 from astares/cleanups
astares Sep 10, 2023
db08a6d
Fix labels, only P7 to P11
astares Sep 10, 2023
3fb4dc2
Update README.md
astares Sep 10, 2023
c60d3d0
Remove BitmapCharacterSet class>>#inspectorClass
astares Sep 10, 2023
5dadea9
Merge pull request #6 from astares/issue_5
astares Sep 10, 2023
22b8c9d
Update .unit-tests.ston
astares Sep 10, 2023
b6fd4ad
Use codecov-action@v1 to check if that makes a difference
astares Sep 16, 2023
9209847
check if the - makes a difference in displaying coverage
astares Sep 16, 2023
8d7b3f8
Update README.md
astares May 28, 2024
a0f4515
Update build.yml
astares May 28, 2024
e4bc5e2
BitmapCharacterSetTest>>#assertSet:copiedFrom:equals: should use isNo…
astares May 28, 2024
4f7353b
Merge pull request #9 from pharo-contributions/8-BitmapCharacterSetTe…
astares May 28, 2024
0a06112
Update build.yml with P13
astares May 28, 2024
31b3412
Update README.md
astares May 28, 2024
62ee106
Formatting
astares May 28, 2024
e47c961
Merge remote-tracking branch 'upstream/master' into gemstone
Sep 19, 2025
56d564e
Adding CI group
Sep 19, 2025
7d414b6
Merge pull request #3 from astares/issue_2
Sep 19, 2025
49515cd
Partially done - Merge pull request #4 from astares/cleanups
Sep 19, 2025
f856c94
Merge pull request #6 from astares/issue_5
Sep 19, 2025
728ab18
Merge pull request #9 from pharo-contributions/8-BitmapCharacterSetTe…
Sep 19, 2025
4bf054d
Updating CI information in order to run the jobs
Sep 29, 2025
fd49e72
Refactoring for GemStone compatibility
Sep 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build

on: [push,pull_request,workflow_dispatch]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
smalltalk: [ Pharo64-7.0, Pharo64-8.0, Pharo64-9.0, Pharo64-10, Pharo64-11, Pharo64-12, Pharo64-13 ]
name: ${{ matrix.smalltalk }}
steps:
- uses: actions/checkout@v2
- name: Set up Smalltalk CI
uses: hpi-swa/setup-smalltalkCI@v1
with:
smalltalk-image: ${{ matrix.smalltalk }}
- name: Load Image and Run Tests
run: smalltalkci -s ${{ matrix.smalltalk }} .smalltalkci/.unit-tests.ston
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
timeout-minutes: 15
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
name: ${{matrix.os}}-${{matrix.smalltalk}}
token: ${{ secrets.CODECOV_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-20.04, macos-latest ]
smalltalk: [ GemStone64-3.5.3, GemStone64-3.5.8, GemStone64-3.6.0, GemStone64-3.6.5 ]
os: [ ubuntu-latest ]
smalltalk: [ GemStone64-3.7.2, GemStone64-3.7.4.3 ]
runs-on: ${{ matrix.os }}
name: ${{ matrix.smalltalk }}
steps:
Expand All @@ -31,7 +31,7 @@ jobs:
name: Post Workflow Status To Slack
needs:
- build
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Slack Workflow Notification
uses: Gamesight/slack-workflow-status@master
Expand Down
16 changes: 8 additions & 8 deletions .smalltalk_gemstone.ston
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
SmalltalkCISpec {
#loading : [
SCIMetacelloLoadSpec {
#baseline : 'BitmapCharacterSet',
#directory : 'filetree',
#load : [ 'Tests' ],
#platforms : [ #gemstone]
}
]
#loading : [
SCIMetacelloLoadSpec {
#baseline : 'BitmapCharacterSet',
#directory : 'filetree',
#load : [ 'Tests' ],
#platforms : [ #gemstone]
}
]
}
16 changes: 16 additions & 0 deletions .smalltalkci/.unit-tests.ston
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
SmalltalkCISpec {
#loading : [
SCIMetacelloLoadSpec {
#baseline : 'BitmapCharacterSet',
#directory : '../src',
#load : [ 'CI' ],
#platforms : [ #pharo ]
}
],
#testing : {
#coverage : {
#packages : [ 'Collections*' ],
#format: #lcov
}
}
}
1 change: 1 addition & 0 deletions .travis_pharo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ os:

smalltalk:
- Pharo-7.0

14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
# BitmapCharacterSet [![Build Status](https://github.com/GsDevKit/BitmapCharacterSet/actions/workflows/ci.yml/badge.svg?branch=gemstone)](https://github.com/GsDevKit/BitmapCharacterSet/actions/workflows/ci.yml)

BitmapCharacterSet is a set for characters that uses a bitmap for storing wide characters and an array of truth values for byte characters. Used by XMLParser.
**BitmapCharacterSet** is a set for characters that uses a bitmap for storing wide characters and an array of truth values for byte characters in [Pharo](https://www.pharo.org). Used by [XMLParser](https://github.com/pharo-contributions/XML-XMLParser).


[![Unit Tests](https://github.com/pharo-contributions/BitmapCharacterSet/workflows/Build/badge.svg?branch=master)](https://github.com/pharo-contributions/BitmapCharacterSet/actions?query=workflow%3ABuild)
[![Coverage Status](https://codecov.io/github/pharo-contributions/BitmapCharacterSet/coverage.svg?branch=master)](https://codecov.io/gh/pharo-contributions/BitmapCharacterSet/branch/master)

[![Pharo 7](https://img.shields.io/badge/Pharo-7.0-%23aac9ff.svg)](https://pharo.org/download)
[![Pharo 8](https://img.shields.io/badge/Pharo-8.0-%23aac9ff.svg)](https://pharo.org/download)
[![Pharo 9](https://img.shields.io/badge/Pharo-9.0-%23aac9ff.svg)](https://pharo.org/download)
[![Pharo 10](https://img.shields.io/badge/Pharo-10-%23aac9ff.svg)](https://pharo.org/download)
[![Pharo 11](https://img.shields.io/badge/Pharo-11-%23aac9ff.svg)](https://pharo.org/download)
[![Pharo 12](https://img.shields.io/badge/Pharo-12-%23aac9ff.svg)](https://pharo.org/download)
[![Pharo 13](https://img.shields.io/badge/Pharo-13-%23aac9ff.svg)](https://pharo.org/download)

## Installation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ baseline: spec
spec for: #common do: [
"Packages and Dependencies"
spec
package: 'Collections-BitmapCharacterSet-Core';
package: 'Collections-BitmapCharacterSet-Tests' with: [ spec requires: 'Collections-BitmapCharacterSet-Core' ].
package: 'Collections-BitmapCharacterSet-Base';
package: 'Collections-BitmapCharacterSet-Tests' with: [ spec requires: 'Collections-BitmapCharacterSet-Base' ].

"Groups"
spec
group: 'Core' with: #('Collections-BitmapCharacterSet-Core');
group: 'Core' with: #('Collections-BitmapCharacterSet-Base');
group: 'Tests' with: #('Collections-BitmapCharacterSet-Tests');
group: 'CI' with: #('Tests');
group: 'all' with: #('Core' 'Tests');
group: 'default' with: #('all')
]
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"category" : "Collections-BitmapCharacterSet-Core",
"category" : "Collections-BitmapCharacterSet-Base",
"classinstvars" : [
],
"classvars" : [
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SystemOrganization addCategory: #'Collections-BitmapCharacterSet-Core'!
SystemOrganization addCategory: #'Collections-BitmapCharacterSet-Base'!
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(name 'Collections-BitmapCharacterSet-Base')

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ assertSet: aFirstSet copiedFrom: aSecondSet equals: aThirdSet
self
deny: aFirstSet == aSecondSet;
deny: aFirstSet byteCharacters == aSecondSet byteCharacters.
(aFirstSet wideCharacters notNil
or: [aSecondSet wideCharacters notNil])
(aFirstSet wideCharacters isNil not
or: [aSecondSet wideCharacters isNil not])
ifTrue: [self deny: aFirstSet wideCharacters == aSecondSet wideCharacters].

self assert: aFirstSet = aThirdSet.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ testMaxCharacter
| set |

set := self emptySet.
self
shouldnt: [set add: self lastCodePoint asCharacter]
raise: Error.
set add: self lastCodePoint asCharacter.
self assert: (set includes: self lastCodePoint asCharacter).
self
should: [set add: (self lastCodePoint + 1) asCharacter]
should: [ set add: (self lastCodePoint + 1) asCharacter ]
raise: Error.
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,11 @@ testRemoveIfAbsent
| set |

set := self nonEmptySet.
self absentCharactersDo: [:each |
self assert:
(set
remove: each
ifAbsent: [#absent]) = #absent].
self charactersDo: [:each |
self assert:
(set
remove: each
ifAbsent: [self fail]) = each.
self assert:
(set
remove: each
ifAbsent: [#absent]) = #absent].
self absentCharactersDo: [ :each |
self
assert:(set remove: each ifAbsent: [ #absent ]) = #absent ].
self charactersDo: [ :each |
self
assert: (set remove: each ifAbsent: [ self fail ]) = each.
self
assert: (set remove: each ifAbsent: [ #absent ]) = #absent ].
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,16 @@ testSize

set := self emptySet.
size := 0.
self charactersDo: [:each |
self charactersDo: [ :each |
self assert: set size = size.
set add: each.
size := size + 1.
self assert: set size = size.

"Adding the same character shouldn't alter the size"
set add: each.
self assert: set size = size.].
self assert: set size = size ].

self charactersDo: [:each |
self charactersDo: [ :each |
set remove: each.
size := size - 1.
self assert: set size = size].
self assert: set size = size ].
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
tests
testWideCharacters
0 to: 7 do: [:i | | set character |
0 to: 7 do: [ :i |
| set character |
set := self setClass new.
character := (256 + i) asCharacter.
self assert: set wideCharacters isNil.
set add: character.
self assert: set wideCharacters first = (16r80 bitShift: i negated).
set remove: character.
self assert: set wideCharacters first = 0].
0 to: 7 do: [:i | | set character |
self assert: set wideCharacters first = 0 ].
0 to: 7 do: [ :i |
| set character |
set := self setClass new.
character := (256 + 8 + i) asCharacter.
self assert: set wideCharacters isNil.
set add: character.
self assert: set wideCharacters second = (16r80 bitShift: i negated).
set remove: character.
self assert: set wideCharacters second = 0]
self assert: set wideCharacters second = 0 ]
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"category" : "Collections-BitmapCharacterSet-Tests",
"category" : "Collections-BitmapCharacterSet-Tests-Base",
"classinstvars" : [
],
"classvars" : [
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SystemOrganization addCategory: #'Collections-BitmapCharacterSet-Tests'!
SystemOrganization addCategory: #'Collections-BitmapCharacterSet-Tests-Base'!
4 changes: 0 additions & 4 deletions filetree/ConfigurationOfBitmapCharacterSet.package/.filetree

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading