File: fix-unicode-incompatibility.patch

package info (click to toggle)
r-bioc-graph 1.84.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,820 kB
  • sloc: ansic: 842; makefile: 12
file content (14 lines) | stat: -rw-r--r-- 588 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Author: Nilesh Patra <npatra974@gmail.com>
Description: Replace non-mainline unicode with \u0027 i.e. the unicode of "'".
Date: Wed - May 27, 2020
--- a/inst/unitTests/graphNEL_test.R
+++ b/inst/unitTests/graphNEL_test.R
@@ -88,7 +88,7 @@
     ## verify unknown node behavior
     ans <- tryCatch(inEdges("not-a-node", g),
                     error = function(e) e)
-    checkEquals("not a node: 'not-a-node'", conditionMessage(ans))
+    checkEquals("not a node: 'not-a-node'", gsub("\u2019","\u0027",gsub("\u2018","\u0027",conditionMessage(ans))))
 }
 
 testEmptyGraph <- function() {