require "extend/string" require "tempfile" require "utils/inreplace" describe StringInreplaceExtension do subject { string.extend(described_class) } describe "#change_make_var!" do context "flag" do context "with spaces" do let(:string) do <<-EOS.undent OTHER=def FLAG = abc FLAG2=abc EOS end it "is successfully replaced" do subject.change_make_var! "FLAG", "def" expect(subject).to eq <<-EOS.undent OTHER=def FLAG=def FLAG2=abc EOS end it "is successfully appended" do subject.change_make_var! "FLAG", "\\1 def" expect(subject).to eq <<-EOS.undent OTHER=def FLAG=abc def FLAG2=abc EOS end end context "with tabs" do let(:string) do <<-EOS.undent CFLAGS\t=\t-Wall -O2 LDFLAGS\t=\t-lcrypto -lssl EOS end it "is successfully replaced" do subject.change_make_var! "CFLAGS", "-O3" expect(subject).to eq <<-EOS.undent CFLAGS=-O3 LDFLAGS\t=\t-lcrypto -lssl EOS end end end context "empty flag between other flags" do let(:string) do <<-EOS.undent OTHER=def FLAG = FLAG2=abc EOS end it "is successfully replaced" do subject.change_make_var! "FLAG", "def" expect(subject).to eq <<-EOS.undent OTHER=def FLAG=def FLAG2=abc EOS end end context "empty flag" do let(:string) do <<-EOS.undent FLAG = mv file_a file_b EOS end it "is successfully replaced" do subject.change_make_var! "FLAG", "def" expect(subject).to eq <<-EOS.undent FLAG=def mv file_a file_b EOS end end context "shell-style variable" do let(:string) do <<-EOS.undent OTHER=def FLAG=abc FLAG2=abc EOS end it "is successfully replaced" do subject.change_make_var! "FLAG", "def" expect(subject).to eq <<-EOS.undent OTHER=def FLAG=def FLAG2=abc EOS end end end describe "#remove_make_var!" do context "flag" do context "with spaces" do let(:string) do <<-EOS.undent OTHER=def FLAG = abc FLAG2 = def EOS end it "is successfully removed" do subject.remove_make_var! "FLAG" expect(subject).to eq <<-EOS.undent OTHER=def FLAG2 = def EOS end end context "with tabs" do let(:string) do <<-EOS.undent CFLAGS\t=\t-Wall -O2 LDFLAGS\t=\t-lcrypto -lssl EOS end it "is successfully removed" do subject.remove_make_var! "LDFLAGS" expect(subject).to eq <<-EOS.undent CFLAGS\t=\t-Wall -O2 EOS end end end context "multiple flags" do let(:string) do <<-EOS.undent OTHER=def FLAG = abc FLAG2 = def OTHER2=def EOS end specify "are be successfully removed" do subject.remo
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {"NUMBER_FORMATS":{"DECIMAL_SEP":",","GROUP_SEP":" ","PATTERNS":[{"minInt":1,"minFrac":0,"macFrac":0,"posPre":"","posSuf":"","negPre":"-","negSuf":"","gSize":3,"lgSize":3,"maxFrac":3},{"minInt":1,"minFrac":2,"macFrac":0,"posPre":"","posSuf":" \u00A4","negPre":"-","negSuf":" \u00A4","gSize":3,"lgSize":3,"maxFrac":2}],"CURRENCY_SYM":"€"},"pluralCat":function (n) {  if (n >= 0 && n < 2) {    return PLURAL_CATEGORY.ONE;  }  return PLURAL_CATEGORY.OTHER;},"DATETIME_FORMATS":{"MONTH":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],"SHORTMONTH":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],"DAY":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],"SHORTDAY":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"AMPMS":["AM","PM"],"medium":"d MMM y HH:mm:ss","short":"dd/MM/yy HH:mm","fullDate":"EEEE d MMMM y","longDate":"d MMMM y","mediumDate":"d MMM y","shortDate":"dd/MM/yy","mediumTime":"HH:mm:ss","shortTime":"HH:mm"},"id":"fr-re"});
}]);