Skip to content

Commit

Permalink
Update deps and rebuild test examples
Browse files Browse the repository at this point in the history
Scalacheck generates new values for strings with the same seed.
  • Loading branch information
zarthross committed Apr 2, 2024
1 parent 7d43c9c commit c77447c
Show file tree
Hide file tree
Showing 35 changed files with 653 additions and 457 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class VisitSuite extends AnyFlatSpec with FlatSpecDiscipline with VisitTestInsta
val value = Visit(12345L, "/index.html", Instant.parse("2019-10-22T14:54:13Z"))

"codecForVisit" should "decode JSON that's known to be good" in {
assert(io.circe.jawn.decode[Visit](good) === Right(value))
assert(io.circe.parser.decode[Visit](good) === Right(value))
}

it should "produce the expected results" in {
Expand Down
21 changes: 13 additions & 8 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,19 @@ ThisBuild / scalaVersion := scala213
ThisBuild / crossScalaVersions := Seq(scala212, scala213)

val circeVersion = "0.14.1"
val scalacheckVersion = "1.15.4"
val disciplineScalatestVersion = "2.1.5"
val scalacheckVersion = "1.16.0"
val disciplineScalatestVersion = "2.2.0"
val scalacheckScalaTestVersion = "3.2.18.0"

val root = tlCrossRootProject.aggregate(golden, example1)

lazy val golden = crossProject(JVMPlatform)
.withoutSuffixFor(JVMPlatform)
.crossType(CrossType.Pure)
.in(file("golden"))
.settings(
moduleName := "circe-golden",
libraryDependencies ++= Seq(
"org.scalatestplus" %%% "scalacheck-1-17" % scalacheckScalaTestVersion,
"io.circe" %%% "circe-core" % circeVersion,
"io.circe" %%% "circe-parser" % circeVersion,
"io.circe" %%% "circe-testing" % circeVersion,
Expand All @@ -31,9 +32,8 @@ lazy val golden = crossProject(JVMPlatform)
)
)

lazy val goldenJVM = golden.jvm

lazy val example1 = project
lazy val example1 = crossProject(JVMPlatform)
.crossType(CrossType.Pure)
.in(file("examples/example-1"))
.settings(
libraryDependencies ++= Seq(
Expand All @@ -43,7 +43,7 @@ lazy val example1 = project
)
)
.enablePlugins(NoPublishPlugin)
.dependsOn(goldenJVM % Test)
.dependsOn(golden % Test)

ThisBuild / developers := List(
Developer(
Expand All @@ -52,5 +52,10 @@ ThisBuild / developers := List(
"[email protected]",
url("https://twitter.com/travisbrown")
),
Developer("zarthross", "Darren Gibson", "[email protected]", url("https://twitter.com/zarthross"))
Developer(
"zarthross",
"Darren Gibson",
"[email protected]",
url("https://twitter.com/zarthross")
)
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"Bar" : {
"i" : 194137460,
"s" : "뜴䛽崈఍剚∘憯綖衠傥몳螿胼㸼랜כֿ㋲聭ۘ勬愿㐓뎹ी컳﹋粷"
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"Baz" : [
"↍⒀ᣘ垹釔ଽ䡈ꐑ㈈⠌碴碛㥝鯢趰⣄軺᨜˒ĵ琓唓梱䃯퍽鰂跤溮蘓룖㴾駡ᱹ✅ᬪ㚹ヘʽᄚ엣꧞第馩ꑢ䛵⽑璏ⰺ凂蓆韕潳⳶씺딛䃲乒삣ቻ芻岮⹏嶹鎈⼸渝삽",
"ᰛ鉭䧄⹳㶇黳೧뿟ԩ䋃卦瑡V퓒䂠繕峦搖芵﹘ꇻﳣ൅칛䉒缂峸㱁擹",
"惿堋⚖ᗪﳱୱ濣飶輜嵅ᐕ빽䳰ࢫᣥ嫗줾₪䢘瞪좵ᵝ왢⟛코ꂭ웝ꑬ㉻崼鐁࡬ᗸ淼ꒁ퉮槆倠䖾ꡔ옅栜헢씩霅멍}﷛뭒⪄륯༧ț㧇",
"敯鴊ꃫ얈붬ʴ沢뢾좌百쬆뵖⬾䌔炣閹룷嵩堲댈쳺뼩偊噅꠽᮰磏⁉詌夲⢶멢㫎잼䟯ጏ䧧桶ꝬⰠㆨě纸拍榤뽿炆찿脢몜䂶휵㯞풷ܽ노⨼╷㯤속룈떸캿뢍",
"ᔘ듲틽瀞﬽拃ﵜ拉ാ㨏ᔕ隁煟㦸㉈멫᧥ư퍣❫㙘ፄ醥꜒疦㳲衱ㅈ큉뾒鿐군깇꥚䁫ᔼ錋篊誂蜇ᒓ刅ত巹䗺⤞퟽༂鞷늿痂⇋ᰵ겾팁ᴔ읥맂᝷ꓔﶀ",
"濫랑䒶楓픾니ʪꚪ炘쏓፨쎝桏ꎺ桓㪸솳ᆑ헥ᅘ렧긟㞞໎穥ꍽ䢈赌鉸잉医혠䈴❆り긝倉戀硔ꬥഞ뭃䤘矴諧ᆥ뻺靓랔뉽⻽㽿ᰒ侜깚윱敁襲⭡뚔㖫釂阍뷁⤕앍체ㆡ攭ҝ᧬飓딡ꮌℶ㚱ഓ餻瑘砋ં㠛鿚쳚騱呡㭙你",
"嫙䱄Ψ쏭억坝㭐伓গ셿㷃돶뛃㰫籜Ꝧڋᔆ㈷ህࣄ㵉渲牬鉰⭍詗뽍䀺ᳺᯅ〫ﴩ葄",
"ʌ餰晟㳈桙酞驶膥Ꞁ䒂鼬既옞诙䮧᧬⎬粂쌥鵼ﳄ䚞띠됢阀≀㧑鉊ᇝ䈺჏嶷鋏̜憩ᙓᴋ神┑貁䷥ᬚ먛Ģ䯍Լ攙烃☫ͦၑ뱙叓뢾侢鄹왷佅㜟망翗햸肎ᗱ",
"ோⴐㅂ涼翅ퟀ풁ﶦ劈≄퉒ⒾꞺ໖깩±﵄T爫ꠁႯ齔⌗㪈猓㤳㚾⼭ḗꦈ䟾䧿ﻳ죶彴悰낲较ꚜꘌ䃶멿ﵵⴠ䍡囻흩衛묶鶫ꋬ돾琀鯳∧櫼䕐⽭஝谁ⶒ秘胨쳟頖嘍ힾ",
"Ⳗ㾱ԡ짩稓羗ᕋʼn讟佶箨᢯㄄ꫣ䜥뜆澠㇗뽧ꗁ堮䇐긚ꕮ⬦伶䆞র斘胵ꁠ궖螐첛㫈㩻鷍ꖭ䰩Ο埻㜐䶖㾿᤽ϕ⇫鶳먵ꢃ綃纗㡻茌鵁軮떂鏉폞姍㚌氀Ӡ⎪᫤攚㪫溡Ǔ䲮ƿ",
"斍ỷ퇻妔㠤疋骦ᖠ魍╢ୃ쯔끆䣡林퍮饏࠭梭⥕퓀뷆ⓒ볤卧댥町〈묧屑ྒྷ覍糋㩥頏峔韅ཅ膆Ⱳ諩梟맕潧桊쥄淿䡍ꅿﻷꆳ丐ᦩ\u0083䂰權뫥瓉㍿퓬蛰Ⰰ넶㜪쨂",
"竑⻋书ᕌ㨛峗咠펋챌꺯눡ᱥ䶽୥銏㰸ꆧ蕋॔Ꙓ඿ʄ鵇㱰蔙嘼䤀솋柰횴썊飊꓉坫䤜㜇⪬硘껥闤⦏ṙ঺祉놤䒩ᡩ啯ᙹ肶ࡓ⮾虁웆䅏璘⧍ุႡ뱖똆쉺䣮鲠兛짔쮻䒽톽랝ῷ괒嵵戎孞"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"Baz" : [
"इ㬱䀋㻗㡔蚔⻮㖥館죸肒튴ꊢ쀌⌶긚社஻ᔖ썕뻛笡졖꿉ꗅ戁습큑᾵Ꟊ鬨朌Ԍ눓曫鯹ᘢ⭡勸ퟄ껇ﴨ뀹瞾䃙䚸泊産␰䨚钋ᝨ횸畖ꎠ敧䂗㔵ഊ۲귍醎䉐蕇栨そ",
"鴯銟凌熶矿崙刭⋳撁꡹",
"槸껮譆ꞔ緅춸谉㼼菀廦䊘ሸ읷岩獢耚踪苞흈漭靱ᴒ⢁푲햔汝⼆㰞⬨廁ᐔ자핲⪠蟻ꆸผ쩵긥갺彷裻ℰ䮤꘱ࢪ㿾\u0007軩詣åᢉ羘현緂䭸ο쵅⮁캂ᄘⰚ᳁崫岰ᆒ铮ꑳ⴮摝뾊ਸ਼㳛",
"戩⇳釻疆Պ⌷鿎Ա췄栫⳿叼䶻ґ챌蚰櫾뎹䙒ᬃ೫쳳闬肆ま뷒ܠ篛ル뺑鹨玜迎號ࢫᚏ䳱闕䚛ⴕὈ詛냡仁",
"㐍矂魊ꀄ銷뢦鯲鴡ꉧ렪皤㏱ᶒʵ病ᡦ䴖⡓䈂ꘓ㕹哬ᶯ借躙ଡ‷〄精᥿篢ᄛୃ䮹ᴫ㬍裳ᾷങ⠂黬杦ᓨ䣅ኹ肔ꨚ躕ၔ僙㜮녭궪֯攍⩯ᐸ瑵䛘벟怩ᘝ紸띦銨無滤쳴ᄑ֔资蹡藪柭ق跑ꪨ쯣婺\u0090쁁ế㴸⋜疰쮽ඡ䎒",
"磉対듞蜇⑎䫲⯨텏ᢄ轲吾ᷤ뺸氲ἱ檥怼ʷ쑉缙뒯䄏腙ገц㡗텊橮빗된쭬윑渨深小᠉㽄癶쩠數硆鋉㝌뜗굟恹趓ℶ쪦䱽뤻ⷎ꛽ↅ㠀젅",
"㝬೉䦧ⷈ疛০䏶メ莌薘핉쩴ꗙ蕪Ⳃ磱륹뺥鵂터㳇᜴깸猩횣ॲ攢玨屹㟁袘ꈨ깴湎瞸쎆ẘ킂覠⪂햁鑿彛沇᭬貓㭄ꯇ머묈㈈ꕭ虇醠槐ఁ⾑㼋箠䊾秝ኦ킞近黛엨캬クיִ⽗޺艁贊톸ﱖ᛹㙘⃶니㋾湝惫⹫쏏펴섵⯎",
"곋消ȼᬵꦝᬐ鸁ˊꯏ㥝鞺苃꟏䍽䓦魬薌왳⻹벭僬﨡㩧⫒镵ƫ顤쬻夵▂쩖ꛥ塊狀郉᷋抌͊潈完唂碽띩Ɓ稆ଘƮ鶾榆銹",
"椁킨콹韂綋䟄弙㸤䔝↲갧螀悐ꅀꥃ憓僽ᣣ욹犛⒤,㛽漃࠶폨⨗퉷晘벎輒ꜚ἗쎑膸濣抇ᙴ蘟ﵯ䞍鯪循釅",
"ḃ嫉冕庡⥃䓳实哻",
"㌲嶱᛹뛛멝䷰渚뼢ത畇裸퍇⾳ꡉ⡨봎潟갂왉꯺떗앿傚腷꘺欿ࢯ᪠줙鼧矔骣掞ˉ왦㆞ꔭ㴘袪猪밳咁㹆軺ឃ빋瑭鵼ff✿侕檯阶҈૑",
"拏폱䍅",
"앛⇳暁἞鏈ዎߣ퉬翵兯銸묛ୢ쟿疥",
"玃ꤺ됃篊蚘↺擮迧⤺薇◺壃낶쮝㉬띞앵哈Ϛ噾ᛂ꣯홶ﶫ⎯硠譝Ϟ鳉⃣氎䐘컑뎻킬欮ᆵ顡刮",
"ဝ᧋䵊㨯튻ꆑ卟⤪걱粻䰁곭ꩵ롕⨭煱罾ꊽ嫈晕櫪卜䋢ꛃ劵땤鿾⏖鸡ᑍ浬ꅺ픶ഡ낭돪粯覴쭿蒎깻⵳☺魤⯃標ꨋ뻴⣣魥紬펽挻୩謱㰏⋀œ鄐盯ڊ궨놜䰻⨁⪣੮Ŗꆅ‚섦蠎蛵名磯犿퐕䧳ᆲ㝲량㺏窓︽붺",
"Ͷ鞷妧䫞Z▙킰㴫䶄拼쇓韬ᓇ双黩ꑕ軃ᕊ僚棺ꍘ㨯譣䜮Ḧ속㎓刵풻ﲃ瞶彽弈湞ꉍ짚꯻灇玹중㰤훙◮렖웗◐ᶵᇏﲩ豺♅鎦ዖᄴ韃ḝ충삫鷄哶ҭ䡕靺貶ꠧ脖됁㰜",
"ꢠ镯擄䖂윲끭龉镁涎ٴ펬뀂莙䖦角⠂ᡭ氭왃鵦篈袪瓣碬桔臓瘴﷌駠䈜멿桏␣뽮填䃭␝鸪䙯뉈Ⅲ䣓횖⒐ﭯ茬⤑脔⦷䦲뭒㷸胫ら◛眣鋫萇⛶柫꬛獒留蛟嗟䒡籠㽋瀫㼝쭑쫼敤阫⥘濞⁂ڗ",
"唃ힲ嬡뻯⌴蛿桊暇ﺢ塥躼᪥㾗脝ᢊ圡娕⢓÷枾忂혬ႀ䰦떤⤦ࣦ譴䃕羳臼辦웒榚⃃⎯췋捨脞㣎脔瑟᪡╧빸帻榹缔ⱼ⊸㋏꺽隠呋˭늛琡튭霂ဇ啪佂긐촊괎∏귂䬮℧䕼㛜謒茑윁㞞䵽賆⥆ꝴώ",
"ಂ。灃䠝㊗栅ꁯ䧯ണ뻙泇酞䡑ड़ᷟ炷≳⠪ꇙ곗೤鞳蒪汜⺖
櫄䃝≱Ỷ劏澎ﻡꔘ娗钪杅䠋樇鎤弜힭坢㽹쬂",
"낰퍼⾑ꦯ먡罅㐅茀冎ݨ͜࠘鹆鏳쾩屶駈༡둶닽黀抪ꅖ쉛㾷ຼ⼺銫旼㒼❁⳨頿Ӭ⬩≓ꃂ懚↋뛪旉蟶⢺ꯙ㿿쒇䢛쫷蛼Ⲙﭸ쐧캔❼㲈扪뾜ᮼ함쮻荫ぃ᠋⭸䘧仴닇掸ן䚣毮⯮ᜫ₤큁켛ꑡ︄욄謽팻ầ㑮ቶ঩",
"墄걋ᝄ絎嬯軳ⴁ抩䟤璻諡첞቎赇㲟뵕黴⹾胖慹쵧阇ꋜ픎坂䰼偝澬犽⸋澵꒞Ἆﳥ漱ḃ梐뺁浫戜ꌝ䣇儉煌瘙꺏趾且蟴䍯륛橡卑ⳑ",
"裯㥣഍諨폼ဪ鳚⧴뽖歂쏝휑ᑏꈷ",
"鬂缈㹾嶝ᮁ荤㈺叀᡿ヰ돇犟衔⌊咿케耳㦽ు핞ꆐ멃䓾䏎쭁涅莀섻榁⧞廭玞᳛퀶儌扭錽農挶얀圭",
"贵䴋ሶ又緭̼鈭곺尒懘᭢䄒痔尙쳃㑯菋죻짐緹듴⡓갘륻㽯씘觝ᤎ걁㥜ꇁ㱍虔१䌐澻覘ⱗ◆艭䨈ᴫ꧵손櫰墣Ⳑ譧\u000f",
"ꍇ↓Տཨ㤦暓ꛎ㇧䬶窲긧뼏ꩥ爤ꋖ礟䁛퀑ꇡ湆ጇᾆ摽뱲ᕰ竛먊텤䦶ࠖ顔ȸꨄ類",
"왆⟶",
"틠ᾧ䵂⏘玡ᷢ໪ߴ藟퐒쇔٢赠슮垹䞼䔛﷢✜㘁켢侍㢲糱犇韐럚鞜Ჵ쇠형獞廵랐邖ﶢ趾ᢦ侓빱ꈂ䀠竢↊ฟ遍䰠韛Ꭶ鋷"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"Bar" : {
"i" : -1,
"s" : "ജ鍹蓞䔩擗졂÷濔瀰뫿Ქ扴玳⾝沷舉香瓍唲ࢢ뜇聞疇煣㒯ꑖ㻺蓈ᥧ惈๦콋嶀ⷁﹸ借Ꮏ凟龂ᑺ鑎굜㫪붆牖윇᭸靖⎈鼦䎾䘏㋲嵧ᆷ抹塞겮諱洘윬雱靰逕﷡ཇⲽ䡪㢚쎝㾛鉔睺拞퓿筜糆陌굂굟ꢹ╯䡾▐꟔㗍"
}
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"Bam" : {
"w" : {
"x" : -201097383244129866
},
"d" : 4.993592536765409E-154
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"w" : {
"x" : 9223372036854775807
},
"d" : -2.7298794472241452E57
"d" : 3.278844257770513E225
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"Bam" : {
"w" : {
"x" : -9223372036854775808
},
"d" : -2.569943042361247E-232
}
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"w" : {
"x" : 9223372036854775807
},
"d" : 1.2616041097019594E-173
"d" : -2.0130745746831155E-275
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"Bam" : {
"w" : {
"x" : 6485460585017003823
},
"d" : -1.475262993551234E210
}
}
Loading

0 comments on commit c77447c

Please sign in to comment.