From 0d75c63a307616b8327b1828d2ab973f4713822b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zden=C4=9Bk=20Crhonek?= Date: Wed, 9 Nov 2016 20:42:15 +0100 Subject: [PATCH] add REPLACE test case Change-Id: Ic9e812abd1bc0d47fe30e810f71bca97811439bc Reviewed-on: https://gerrit.libreoffice.org/30730 Tested-by: Jenkins Reviewed-by: Markus Mohrhard --- sc/qa/unit/data/functions/fods/replace.fods | 1213 +++++++++++++++++++ 1 file changed, 1213 insertions(+) create mode 100644 sc/qa/unit/data/functions/fods/replace.fods diff --git a/sc/qa/unit/data/functions/fods/replace.fods b/sc/qa/unit/data/functions/fods/replace.fods new file mode 100644 index 000000000000..140b735e7090 --- /dev/null +++ b/sc/qa/unit/data/functions/fods/replace.fods @@ -0,0 +1,1213 @@ + + + + 2016-05-23T19:52:21.032366237P0D1LibreOfficeDev/5.3.0.0.alpha1$Linux_X86_64 LibreOffice_project/5d39c2013374727b1c8f147b8b99d54402a7ff02 + + + 0 + 0 + 26356 + 4455 + + + view1 + + + 2 + 8 + 0 + 0 + 0 + 0 + 2 + 0 + 0 + 0 + 0 + 0 + 85 + 60 + true + false + + + 1 + 14 + 0 + 0 + 0 + 0 + 2 + 0 + 0 + 0 + 0 + 0 + 85 + 60 + true + false + + + Sheet2 + 1241 + 0 + 85 + 60 + false + true + true + true + 12632256 + true + true + true + true + false + false + false + 1270 + 1270 + 1 + 1 + true + false + + + + + 7 + false + false + true + true + false + false + false + 1270 + 1270 + true + true + true + true + true + false + 12632256 + false + Lexmark-E352dn + + + en + US + + + + + + zh + CN + + :!),.:;?]}¢'"、。〉》」』】〕〗〞︰︱︳﹐、﹒﹔﹕﹖﹗﹚﹜﹞!),.:;?|}︴︶︸︺︼︾﹀﹂﹄﹏、~¢々‖•·ˇˉ―--′’” + ([{£¥'"‵〈《「『【〔〖([{£¥〝︵︷︹︻︽︿﹁﹃﹙﹛﹝({“‘ + + + true + true + 3 + 1 + true + 1 + true + rgH+/0xleG1hcmstRTM1MmRuAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQ1VQUzpMZXhtYXJrLUUzNTJkbgAAAAAAAAAAAAAAAAAWAAMAzwAAAAAAAAAEAAhSAAAEdAAASm9iRGF0YSAxCnByaW50ZXI9TGV4bWFyay1FMzUyZG4Kb3JpZW50YXRpb249UG9ydHJhaXQKY29waWVzPTEKY29sbGF0ZT1mYWxzZQptYXJnaW5kYWp1c3RtZW50PTAsMCwwLDAKY29sb3JkZXB0aD0yNApwc2xldmVsPTAKcGRmZGV2aWNlPTEKY29sb3JkZXZpY2U9MApQUERDb250ZXhEYXRhCkR1cGxleDpOb25lAElucHV0U2xvdDpUcmF5MQBQYWdlU2l6ZTpBNAAAEgBDT01QQVRfRFVQTEVYX01PREUPAER1cGxleE1vZGU6Ok9mZg== + false + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + £ + + + + - + £ + + + + + £ + + + + - + £ + + + + + £ + + + + + - + £ + + + + + £ + + + + + - + £ + + + + + £ + + + + + - + £ + + + + + + + + + ( + + ) + + + + + + + + ( + + ) + + + + £ + + + + + - + £ + + + + + + £ + + + + + - + £ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + R$ + + + + + + - + R$ + + + + + + + + + + + + - + + + + + + + \ + + + + \- + + + + + \ + + + + + \- + + + + + \ + + + + \- + + + + + \ + + + + + \- + + + + + $ + + + + + ($ + + ) + + + + $ + + + + + + ($ + + ) + + + + $ + + + + + ($ + + ) + + + + $ + + + + + + ($ + + ) + + + + + + + + + + + + - + + + + + + + - + + + + + + + + + + + \ + + + + + + \ + + - + + + + + \ + + - + + + + + + + + + + + + + + + + + + + - + + + + + + + - + + + + + + + + + + + + + \ + + + + + + \ + + - + + + + + \ + + - + + + + + + + + + + + + + + : + + + + + : + + : + + + + + : + + + + + + + + + Lt + + + + - + + + Lt + + + + + / + + / + + + + + - + + - + + + + + - + + + + + - + + + + + : + + + + + + + : + + : + + + + + + + : + + + + + : + + : + + + + + / + + / + + + + : + + + + + + + + + ( + + ) + + + + + + + + + ( + + ) + + + + + + + + + ( + + + ) + + + + + + + + + + ( + + + ) + + + + + + + + + ( + + + ) + + + + + + + + + + ( + + + ) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ??? + + + + Page 1 + + + + + + + ??? (???) + + + 00/00/0000, 00:00:00 + + + + + Page 1 / 99 + + + + + + + + + + + + + + REPLACE Function + + + + + + + + + Result + + + TRUE + + + + + + + + + Sheet + + + Result + + + Description + + + + + 1 + + + TRUE + + + Simple REPLACE formulas with local references and values + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Function + + + Expected + + + Correct + + + FunctionString + + + Comment + + + + Data + + + + + + 444234567 + + + 444234567 + + + TRUE + + + =REPLACE("1234567",1,1,"444") + + + + abcdefghijk + + + + + + abcde*k + + + abcde*k + + + TRUE + + + =REPLACE(I2,6,5,"*") + + + + 2009 + + + + + + 2010 + + + 2010 + + + TRUE + + + =REPLACE(I3,3,2,"10") + + + + 123456 + + + + + + @456 + + + @456 + + + TRUE + + + =REPLACE(I4,1,3,"@") + + + + + + + 1234Q56789 + + + 1234Q56789 + + + TRUE + + + =REPLACE("123456789",5,0,"Q") + + + + + + + abcdefghijkxx + + + abcdefghijkxx + + + TRUE + + + =REPLACE(I2,77,1,"xx") + + + + + + + Err:502 + + + Err:502 + + + TRUE + + + =REPLACE("123456789",0,0,"Q") + + + + + + + Err:502 + + + Err:502 + + + TRUE + + + =REPLACE("123456789",-5,0,"Q") + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file