[Groonga-commit] groonga/gcs [master] test: use translation target for test name

Back to archive index

null+****@clear***** null+****@clear*****
2012年 7月 27日 (金) 14:46:51 JST


Kouhei Sutou	2012-07-27 14:46:51 +0900 (Fri, 27 Jul 2012)

  New Revision: 749904dfa686ac177bb6efff14cb0fa044329034
  https://github.com/groonga/gcs/commit/749904dfa686ac177bb6efff14cb0fa044329034

  Log:
    test: use translation target for test name
    
    Translate ->
    Query

  Modified files:
    test/bq-translator.test.js

  Modified: test/bq-translator.test.js (+6 -6)
===================================================================
--- test/bq-translator.test.js    2012-07-27 14:44:55 +0900 (dc2ddc0)
+++ test/bq-translator.test.js    2012-07-27 14:46:51 +0900 (9ab9e11)
@@ -4,7 +4,7 @@ var assert = require('chai').assert;
 
 var BooleanQueryTranslator = require('../lib/bq-translator').BooleanQueryTranslator;
 
-function testTranslate(expected, query) {
+function testQuery(expected, query) {
   test('translate: <' + query + '> -> <' + expected + '>', function() {
     var translator = new BooleanQueryTranslator();
     assert.equal(expected, translator.translate(query));
@@ -12,10 +12,10 @@ function testTranslate(expected, query) {
 }
 
 suite('BoolanQueryTranslator', function() {
-  testTranslate('type:"ModelName"',
-                "type:'ModelName'");
-  testTranslate('query query type:"ModelName"',
+  testQuery('type:"ModelName"',
+            "type:'ModelName'");
+  testQuery('query query type:"ModelName"',
                 "(and query query type:'ModelName')");
-  testTranslate('"query query" type:"ModelName"',
-                "(and 'query query' type:'ModelName')");
+  testQuery('"query query" type:"ModelName"',
+            "(and 'query query' type:'ModelName')");
 })
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Descargar 



Groonga-commit メーリングリストの案内
Back to archive index