Coder Social home page Coder Social logo

cuis-neocsv's People

Contributors

hhzl avatar

Watchers

 avatar  avatar

Forkers

hilaire

cuis-neocsv's Issues

Do another port -- core-22-tests-19

Reasons

  1. Cuis has been updated to make porting the NeoCSV package easier
  2. Squeak-Compatibility layer has to be loaded.
  3. Sven van Sven van Caekenberghe has updated the Pharo NeoCSV parser package by adding convenience methods.

Failing tests caused by missing methods in Cuis

Character>>isCharacter

Pharo

Character

isCharacter

^ true.

String>join:

Pharo

join: aCollection 
"'*' join: #('WWWWW' 'W  EW' 'zzzz')
    ->  'WWWWW*W  EW*zzzz' "
 "Is there a more efficient / general implementation?"

| w |       
w := WriteStream on: String new.
aCollection do: [ :elem | w nextPutAll: elem asString] separatedBy: [w nextPutAll: self].
^String fromString: w contents

Suggestion for an adapted solution for Cuis at the level of class String (not #SequencableCollection)

join: aCollection 
"'*' join: #('WWWWW' 'W  EW' 'zzzz')
    ->  'WWWWW*W  EW*zzzz' "

| w |       
w := WriteStream on: String new.
aCollection do: [ :elem | w nextPutAll: elem asString] separatedBy: [w nextPutAll: self].
^w contents

String>withCRs

Pharo

String

withCRs
    "Return a copy of the receiver in which backslash (\) characters have been replaced with carriage returns."

    ^ self collect: [ :c | c = $\ ifTrue: [ Character cr ] ifFalse: [ c ]].

Symbol>value:

Pharo

Symbol

value: anObject 
^anObject perform: self.

Solution

Add all the methods to Cuis

Failing tests caused by changed selector names

Character>>codePoint

replace

codePoint

with

unicodeCodePoint

String>>cr

replace

 String cr

with

 String crString

String>crlf

replace

String crlf

with

String crlfString

String>lf

replace

String lf

with

String lfString

Solution

do string replacements in the *.pck.st files

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.