Skip to content

Commit

Permalink
Another export pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Ducasse committed Jun 26, 2024
1 parent 9922e27 commit c7ba8d1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 86 deletions.
29 changes: 3 additions & 26 deletions src/Microdown-Blog-Tests/MicFileTestResources.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -120,30 +120,7 @@ When you participate to the mooc you get access to the quizz and the credit vali
^ file
]

{ #category : 'fixture' }
MicFileTestResources >> generateFilesystemExample3WithBrokenDate [

| file |
file := self workingDirectory / 'anExample3.md'.
file writeStreamDo: [ :stream |
stream nextPutAll: '{
"date" : "20219190199191817161"
}
# Mooc Pharo
Welcome to the Pharo Mooc (a set of videos, exercises, challenges, and miniprojects).
The Pharo Mooc is fully dubbed in french and english. It comes with subtitles in Japanese, english, french and spanish. This web site contains all the material of this Mooc in free access.
In addition, in average every 18 months the Mooc is proposed and run on the France Université Numérique platform (Even if the platform is french the mooc is run in both languages).
When you participate to the mooc you get access to the quizz and the credit validation.
' ].

^ file
]

{ #category : 'fixture' }
{ #category : 'as yet unclassified' }
MicFileTestResources >> generateFilesystemExampleWithoutMetadata1 [

| file |
Expand All @@ -160,7 +137,7 @@ Amazing debugging experience: The Pharo environment includes a debugger unlike a
^ file asFileReference
]

{ #category : 'fixture' }
{ #category : 'as yet unclassified' }
MicFileTestResources >> generateFilesystemExampleWithoutMetadata2 [

| file |
Expand All @@ -176,7 +153,7 @@ Pharo is a pure _object-oriented programming language_ in the tradition of Small
^ file
]

{ #category : 'fixture' }
{ #category : 'as yet unclassified' }
MicFileTestResources >> generateFilesystemExampleWithoutMetadata3 [

| file |
Expand Down
67 changes: 7 additions & 60 deletions src/Microdown-Blog-Tests/MicListSummarizerTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ MicListSummarizerTest >> createListOfMicRootBlockWithoutMetadata [

^ {
(singleSummarizer summarize: ((Microdown parse:
self generateFilesystemExampleWithoutMetadata1 contents)
fromFile: self generateFilesystemExampleWithoutMetadata1)).
resources generateFilesystemExampleWithoutMetadata1 contents)
fromFile: resources generateFilesystemExampleWithoutMetadata1)).
(singleSummarizer summarize: ((Microdown parse:
self generateFilesystemExampleWithoutMetadata2 contents)
fromFile: self generateFilesystemExampleWithoutMetadata2)).
resources generateFilesystemExampleWithoutMetadata2 contents)
fromFile: resources generateFilesystemExampleWithoutMetadata2)).
(singleSummarizer summarize: ((Microdown parse:
self generateFilesystemExampleWithoutMetadata3 contents)
fromFile: self generateFilesystemExampleWithoutMetadata3)) }
resources generateFilesystemExampleWithoutMetadata3 contents)
fromFile: resources generateFilesystemExampleWithoutMetadata3)) }
]

{ #category : 'fixture' }
{ #category : 'as yet unclassified' }
MicListSummarizerTest >> generateFilesystemExample3WithBrokenDate [

| file |
Expand All @@ -73,59 +73,6 @@ When you participate to the mooc you get access to the quizz and the credit vali
^ file
]

{ #category : 'fixture' }
MicListSummarizerTest >> generateFilesystemExampleWithoutMetadata1 [

| file |
file := FileSystem memory workingDirectory / 'anExample1.md'.
file writeStreamDo: [ :stream |
stream nextPutAll: '# A Cool Story
Pharo is cool but _this is_ a superlong _paragraph_ Simple powerful language: No constructors, no types declaration, no interfaces, no primitive types. Yet a powerful and elegant language with a full syntax fitting in one postcard! Pharo is objects and messages all the way down. _Live_, immersive environment: Immediate feedback at any moment of your development: _Developing_, testing, debugging. Even in production environments, you will never be stuck in compiling and deploying steps again!
Amazing debugging experience: The Pharo environment includes a debugger unlike anything you''ve seen before. It allows you to step through code, restart the execution of methods, create methods on the fly, and much more!
' ].

^ file asFileReference
]

{ #category : 'fixture' }
MicListSummarizerTest >> generateFilesystemExampleWithoutMetadata2 [

| file |
file := FileSystem memory workingDirectory / 'anExample2.md'.
file writeStreamDo: [ :stream |
stream nextPutAll: '{# Pharo is cool
If you are either a beginner or an expert in object-oriented programming, _this MOOC_ will change the way you program with objects: come and learn or rediscover _object-oriented programming_ with Pharo!
Pharo is a pure _object-oriented programming language_ in the tradition of Smalltalk. It offers a unique developing experience in constant interaction with live objects. Pharo is elegant, fun to use and very powerful. It is very easy to learn and enables to understand advanced concept in a natural way. When programming in Pharo, you are immersed in a world of live objects. You have immediate feedback at any moment of your development on objects representing web applications, code itself, graphics, network. More…
' ].

^ file
]

{ #category : 'fixture' }
MicListSummarizerTest >> generateFilesystemExampleWithoutMetadata3 [

| file |
file := FileSystem memory workingDirectory / 'anExample3.md'.
file writeStreamDo: [ :stream |
stream nextPutAll: '# Mooc Pharo
Welcome to the Pharo Mooc (a set of videos, exercises, challenges, and miniprojects).
The Pharo Mooc is fully dubbed in french and english. It comes with subtitles in Japanese, english, french and spanish. This web site contains all the material of this Mooc in free access.
In addition, in average every 18 months the Mooc is proposed and run on the France Université Numérique platform (Even if the platform is french the mooc is run in both languages).
When you participate to the mooc you get access to the quizz and the credit validation.
' ].

^ file
]

{ #category : 'as yet unclassified' }
MicListSummarizerTest >> setUp [

Expand Down

0 comments on commit c7ba8d1

Please sign in to comment.